我的網址是http://mysite.com/index/bytype/id/5/name/ACTION
使用Zend路由器時,它會被改寫爲http://mysite.com/index/bytype/5.ACTION.html
我在文件router.ini配置是這樣的:上面Zend的導航不正確的工作事業的Zend路由器
routes.bytype.type = "Zend_Controller_Router_Route_Regex"
routes.bytype.route = "bytype/(\d+).(.*).html"
routes.bytype.defaults.module = "default"
routes.bytype.defaults.controller = "index"
routes.bytype.defaults.action = "bytype"
routes.bytype.map.1 = "id"
routes.bytype.map.2 = "name"
routes.bytype.map.3 = "page"
routes.bytype.reverse = "bytype/%d.%s.html"
代碼有問題,當我點擊按鈕的下一頁,它不會跳轉到下一頁,導致參數頁/ 2不可用,zend路由器被重寫我的url再次變爲http://mysite.com/index/bytype/5.ACTION.html
,
如果不改寫它可能看起來像http://mysite.com/index/bytype/id/5/name/ACTION/page/2
所以我怎麼能包括「網頁」參數到上面的URL與zend router.thanks閱讀