#1
Hi
I have a module called success_stories and have a general index function. and I have views/success_stories.php file.
If I am having the URL like http://localhost/success_stories/ it is working fine. But I would like pass to URL success-stories/ instead success_stories/
New URL would be http://localhost/arista/success-stories/
Here is my code in custom_routing.php


I am getting below error when I visit page with this URL http://localhost/arista/success-stories/

ERROR: View file does not exist at: G:/xampp8.2.4/htdocs/arista/modules/success-stories/views/success_stories.php
How to solve this?
Thanks in advance
Siri K
#2
Hi,
That is my mistake. I am not loading view module. that was the issue

Now it is working fine.
#3
I was just about to suggest the same solution, Siri

Glad you worked it out.

Cheers,
Si