Great, thanx. That worked.
Though that mean I have to make routes for all controllers
that otherwise would default to.
Is it best to put all routes in the bootstrap file index.php?
Brenton Alker skrev:
Anders Gunnarsson wrote:
Hi
I have made a route that points
domain.com/username
to a controller "users" with action "view".
But at the same time, I would like existing controllers to
be prioritized before the routing.
Eg
domain.com/videos
should point to the controller "videos" not the username.
Is this possible?
regards
Anders
The router will stop at the first route it finds that matches, and
according to the docs
(http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.basic)
they are matched in reverse order.
So as long as your "videos" route is defined after your "username"
route, you should be fine.