cphalcon
cphalcon copied to clipboard
Request: Pass Variable to Router
Request to be able to use variables inside router. For example;
$group = "(longwordone|longwordtwo|longwordthree|longwordfour)";
$router->add("/test/{name:$group}", [
'controller' => 'index',
'action' => 'test'
]);
Why not using dispatcher inside controller instead?
Thank you for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please feel free to either reopen this issue or open a new one. We will be more than happy to look at it again! You can read more here: https://blog.phalconphp.com/post/github-closing-old-issues