I have a route that looks like this:
$router->add("/{uid:[0-9]+}/:params", "User::view");
In my controller, I want to be able to distinguish between the case where the user arrives at the page via https://example.com/1234/ and https://example.com/1234/ABC.
I'm trying to do this by checking $this->dispatcher->getParams()
, but getParams()
only seems to give me the uid and not any additional parameters passed. What am I doing wrong?
Thanks so much!