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

[SOLVED]Optional routing param

/:controller/:action/:params

Is it possible to set params optional, e.g.: when action is 'add', no param needed, and when 'update', the param could be 'username' or 'password'.

Not sure if the default way works, I add two different rules.