ZF-11141: Add default module name string in the URIs when the user customize default routes

Issue Type: New Feature Created: 2011-03-08T17:04:04.000+0000 Last Updated: 2011-03-08T17:04:04.000+0000 Status: Open Fix version(s): Reporter: Juan Felipe Alvarez Saldarriaga (nebiros) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Controller

Related issues: Attachments:


I change the default routes to create a chained route between the current region and the default routes, so every url that I create is something like this: -> /:region/:module/:controller/:action.

The problem that I have and that's why I want to add this feature is because this application has a controller named UsersController inside the default module: application/modules/default/controllers/UsersController.php and it has a module named users: application/modules/users/controllers/IndexController.php so when the 'default' module name string is not append to the url I got this return from the url view helper: so zend framework tray to load 'users' module instead of 'users' controller, what I want is an option to add this string 'default' in the url when you have something like this. I just hack the url view helper and the redirector to append 'default' string when the module is 'default'.

My current configuration: resources.router.routes.module.type = "Zend_Controller_Router_Route_Module" resources.router.routes.region.type = "Zend_Controller_Router_Route" resources.router.routes.region.route = ":region" resources.router.routes.region.reqs.region = "[a-z]{2}" resources.router.routes.region.abstract = 1 resources.router.routes.default.type = "Zend_Controller_Router_Route_Chain" resources.router.routes.default.chain = "region, module"



No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.