I have controller named GlossaryController with 2 actions indexAction and anotherAction in view i have a directory glossary and index.volt file
i want to define a route with parameters for example http://localhost/project/glossary/another/params it should redirect me to indexAction with parameters
In your routes.php file in app/config folder add this line:
And your anotherAction method will be like:
This way first param must be sent, second one is optional, you can add this way as much params as you like.
See official docs for various ways of routing: https://olddocs.phalconphp.com/en/3.0.3/reference/routing.html