Hello Guys, I want to get User-friendly URLs. I set route, for example:
$router->add('/admin/login', [
'module' => 'backend',
'namespace' => 'MyProject\Backend\Controllers\\',
'controller' => 'index',
'action' => 'login'
]);
Then I create link:
Phalcon\Tag::linkTo($module.'/'.$controller.'/'.$action, $option['caption']);
in case if module is 'backend', controller is 'index' and action is 'login' i hoped get link like this: https://phalcon.local/MyProject/admin/login but I recived url like this: https://phalcon.local/MyProject/backend/index/login I try using
$url->get($module.'/'.$controller.'/'.$action);
unfortunately i get MyProject/backend/index/login again. Can you help, How to solve this problem?