I am using INVO example app from here:
I have copied all the files and set the db and base url.
It works, I can login etc.
however, I wanted to learn how to use redirects e.g.
I would like to use
contact-us instead of
contact without cahnging the name of the controller.
So, I created a file routes.php inside of the app/config folder and put this code inside routes.php :
<?php $router->add('/contact-us', array( 'controller' => "contact", 'action' => "index" ))->setName('contact');
However, it's not working and when I try to access
http://localhost/test/contact-us I am getting this error:
You don't have access to this module
The original url
http://localhost/test/contact works ok.
What am I doing wrong?
Do I need to set something else in Phalcon? Btw. how is the routes.php file loaded? Is it done automatically or do I need to set it somewhere? If so how?