2

我怎样才能让这 2 条路线(语言,amdin)工作.. 单独的管理员,或者语言可以工作,但他们会一起失败:(

; Admin route
resources.router.routes.admin.type = Zend_Controller_Router_Route
resources.router.routes.admin.route = ":admin"
resources.router.routes.admin.reqs.admin = "admin"

; Language route
resources.router.routes.language.type = Zend_Controller_Router_Route
resources.router.routes.language.route = ":language"
resources.router.routes.language.reqs.language = "^(nl|en)$"
resources.router.routes.language.defaults.language = "nl"

; Default route chain
resources.router.routes.default.type = Zend_Controller_Router_Route_Chain
resources.router.routes.default.chain = "language, admin, defaultmodule"
4

1 回答 1

1

嗯,当然。这些路线是重叠的,但它们应该是不同的。

; Admin route
...
resources.router.routes.admin.route = "admin/:admin"
...
于 2011-03-15T13:24:04.413 回答