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. -- Brenton Alker http://blog.tekerson.com/
signature.asc
Description: OpenPGP digital signature