We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon routing behaviour - redundant routes?

Answered by Nikolaos Dimopoulos at stackoverflow as follows (removing from unanswered list)

This route

php $router->add('/:controller/:action/:params', array( Will only execute if it gets all parts to make the route valid for example

php myapp/users/logout/dave The above will match what that route is looking for and cause the route to execute.

php myapp/users The above however wouldn't match due to missing actions and params also a url with a / and without aren't the same url.