Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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



84.5k
Accepted
answer

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