Search code examples
phpzend-frameworkrouterzend-controller-router

Zend Router (How to direct url such as /administration/users to Administration_UsersController)


I would like to keep the old default Zend Router, and just add a router for administration subpages since the controllers are growing in size and I would like to logically separate them a little as well as have cleaner URLs.

The documentation seems to explain how to do other things but not this...


Solution

  • This will work out of the box with the default routes. You just need to add an administration module, and then /administration/users will map to the users controller in the administration module.