URL
somedomain.com/?_escaped_fragment_
试一试:
routes.escaped-fragment.type = "Zend_Controller_Router_Route_Regex"
routes.escaped-fragment.route = "\?_escaped_fragment_"
routes.escaped-fragment.defaults.controller = "index"
routes.escaped-fragment.defaults.action = "someaction"
但他没有看到GET参数?_escaped_fragment_ 并运行
IndexController::indexAction
答案 0 :(得分:1)
ZF路由器仅在路径上运行,查询字符串参数在路由匹配发生之前被剥离,因此您无法轻松实现此功能。您的选择是: