phalconphalcon-routing

How to create dynamic routing in phalcon?


I have read the documentation of phalcon routing and cannot find the one like i needed.

/{param1}/{param2}/{param3}/controllerName/actionName/{param4}

Help me guys.


Solution

  • From docs:

    /:params (/.) Matches a list of optional words separated by slashes. Only use this placeholder at the end of a route

    In other hands you could rewrite their positions through apache/.htaccess.