2012-12-19 116 views
1

我想路由器在我routes.ini文件Zend的路由器鏈和配套控制器/行動問題

http://hawthornfc.localsupportus.com.au/hints

匹配這個網址我有

subdomain.type = "Zend_Controller_Router_Route_Hostname" 
subdomain.route = ":clubalias.localsupportus.com.au" 
subdomain.reqs.clubalias = "\w+" 
subdomain.default.clubalias = "geelongscouts" 
subdomain.defaults.controller = "index" 
subdomain.defaults.action = "profile" 

hints.type = Zend_Controller_Router_Route_Static 
hints.route = "hints" 
hints.default.controller = "help" 
hints.default.action = "hints" 

subdomain_hints.type = Zend_Controller_Router_Route_Chain 
subdomain_hints.chain = "subdomain, hints" 

我的路線是完全匹配的即。 subdomain_hints但它關係到指數/配置文件而不是/幫助/提示

請指點

回答

1

您可以刪除這些行:

subdomain.defaults.controller = "index" 
subdomain.defaults.action = "profile" 

,如果你想對路由的個人資料頁做同樣的思考正如你爲「提示」頁面所做的那樣,並將其與「子域」路由相鏈接。