Subdomain module mapping with Zend Framework

Here is a very simple config to map a subdomain to a module with Zend Framework:
Going will route to

resources.router.routes.module.type = "Zend_Controller_Router_Route_Hostname"
resources.router.routes.module.route = ""
resources.router.routes.module.defaults.module = "www"
resources.router.routes.module.chains.index.type = "Zend_Controller_Router_Route"
resources.router.routes.module.chains.index.route = ":controller/:action/*"
resources.router.routes.module.chains.index.defaults.controller = "index"
resources.router.routes.module.chains.index.defaults.action = "index"

Just add this to your application.ini


Popular posts from this blog

After Several Months on Ting Here is My Review

AppLauncher Auto Organizer

Globe Customer Service - Suggestions for Improvements