私のURLはhttp://mysite.com/index/bytype/id/5/name/ACTION
、zendルーターを使用する場合、http://mysite.com/index/bytype/5.ACTION.html
次のようにrouter.iniファイルに設定され ていたように書き換えられます。
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"
上記のコードは、次のページのボタンをクリックすると問題が発生し、次のページにジャンプせず、パラメーター page/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 を使用して読み込んでください