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.

Looks like the 2nd rule does not work, why?

$router->add('/Videos/{id:.+}',        ['controller' => 'Videos', 'action' => 'index']);
$router->add('/Videos/{id:.+}/{t:.+}', ['controller' => 'Videos', 'action' => 'index']);

match /Videos/123 or /Videos/123/Furious-7

Thanks.



15.5k
Accepted
answer

Oh, I removed the 3rd rule, it works now, thanks.