1

I have created custom module i.e /stores/index/display.

But I want to modify the /stores, How can I do that?

  • What url you should use for your module? – Kamlesh Solanki Apr 10 at 6:09
  • mention what url you want to need ? – HaFiz Umer Apr 10 at 6:12
  • @Parshuram you can create your custom controller with custom routes – fmsthird Apr 10 at 6:16
  • my URL is locate/stores/index/display – Parshuram Apr 12 at 7:19
  • but just modify the locate/stores how to do that? – Parshuram Apr 12 at 7:19
1

Try to change the controller name inside Controller >> Index >> Display.php to Index.php and change the layout also.

0

If you want to access your route just /stores or what ever unique name. For that you have to create folder with name Index & Action name Index

For example in your case your structure will be:

enter image description here

CustomRequestPosts is my module name, so you just have to change your file name Display.php to Index.php Let me know is still have any confusion on routes.

  • @parshuram IS this working for you ? or you want something else ? – Hassan Ali Shahzad Apr 10 at 8:11
  • not working for me – Parshuram Apr 12 at 7:20
  • @Parshuram Update your question with all your module files – Hassan Ali Shahzad Apr 12 at 10:02

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.