Zend Framework route chaining in application.ini -
i setting language depending on domain name (en en.example.com, tr tr.example.com):
resources.router.routes.plain.type = "zend_controller_router_route" resources.router.routes.plain.route = "/:module/:controller/:action" resources.router.routes.plain.defaults.language= "en" resources.router.routes.plain.defaults.module = "content" resources.router.routes.plain.defaults.controller = "index" resources.router.routes.plain.defaults.action = "index" resources.router.routes.plain1.type = "zend_controller_router_route" resources.router.routes.plain1.abstract = 1 resources.router.routes.plain1.route = "/:module/:controller/:action/*" resources.router.routes.plain.defaults.module = "content" resources.router.routes.plain.defaults.controller = "index" resources.router.routes.plain.defaults.action = "index" resources.router.routes.dom0.type = "zend_controller_router_route_hostname" resources.router.routes.dom0.abstract = 1 resources.router.routes.dom0.route = "en.example.com" resources.router.routes.dom0.defaults.language= "en" resources.router.routes.chn1.type = zend_controller_router_route_chain resources.router.routes.chn1.chain = "dom0, plain1" resources.router.routes.dom1.type = "zend_controller_router_route_hostname" resources.router.routes.dom1.abstract = 1 resources.router.routes.dom1.route = "tr.example.com" resources.router.routes.dom1.defaults.language= "tr" resources.router.routes.chn2.type = zend_controller_router_route_chain resources.router.routes.chn2.chain = "dom1, plain1"
the problem here when call url modulename , without specifying controller or action: tr.example.com/content/ language set "en"
but when call modulename, controller , action: tr.example.com/content/article/read fine
what do wrong?
thanks in advance
you have not specified default module, controller , action plain1.
Comments
Post a Comment