We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 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