We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Router cuts off first character of parameter

$router->add(
    "/admin/:controller/a/:action/{params}",
    array(
        "controller" => 1,
        "action"     => 2,
    )
);

When route is made like this, then after accessing params in Controller it somehow cuts of first character, like I have

controller/someaction/1234 then when accessing params it returns 234



98.9k
Accepted
answer

'params' is a reserved name you have to use a different name to avoid that