I am unable to do changes in routes, because the changes in the app/config/routes.php didn't reflect what I put there.
E.g. I put there this:
<?php
$router = new Phalcon\Mvc\Router(false);
$router->add('/contact-us', array(
'controller' => "contact",
'action' => "index"
))->setName('contact');
$router->handle();
return $router;
and then I did this (commented the alias):
<?php
$router = new Phalcon\Mvc\Router(false);
/*$router->add('/contact-us', array(
'controller' => "contact",
'action' => "index"
))->setName('contact');*/
$router->handle();
return $router;
And now neither contact
nor contact-us
works. I am redirected to the homepage ;(
How to automatically rebuild Phalcon routes during development?