I am here trying to make a hello world message when trying to access my controller function using browser url


This is the path to my controller file.

In that file i have a function execute(). I have to access that function in my browser



or any other formate of url.

please help me out... Thanks in advance

  • You cannot access method with directory path. – Abdul Pathan Jun 27 '20 at 10:20
  • i want to send values to this function from a pos application. So how can i pass that values to a controller in magento 2.3.5 – Deepak Dev Jun 27 '20 at 10:25
  • First of all you need to see routes.xml file of the plugin to see the exact url to access through URL. I cannot tell without looking at the code. Next is you should never pass data from another application directly to the controller, rather you should you use API to do so. – Abdul Pathan Jun 27 '20 at 10:47
  • Can u suggest me how can I pass values from other applications to my Magento controller ? – Deepak Dev Jun 28 '20 at 7:30
  • Please join the room chat.stackexchange.com/rooms/109943/… – Abdul Pathan Jun 28 '20 at 7:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.