Routes 科哈纳3号-定制路线

Routes 科哈纳3号-定制路线,routes,kohana-3,Routes,Kohana 3,我正在尝试创建一个自定义路由,例如:搜索/result/city/p1/state/p2/zip/p3/min/p4/max/p5/bed/p6/bath/p7/cats/p8/dogs/p9/parking/p10其中,搜索是控制器,结果是变量,动作p1-p10?这是 Route::set('crazy_route', 'search/result/city/<p1>/state/<p2>/zip/<p3>/min/<p4>/max/<p5

我正在尝试创建一个自定义路由,例如:
搜索/result/city/p1/state/p2/zip/p3/min/p4/max/p5/bed/p6/bath/p7/cats/p8/dogs/p9/parking/p10
其中,搜索是控制器,结果是变量,动作p1-p10?这是

Route::set('crazy_route', 'search/result/city/<p1>/state/<p2>/zip/<p3>/min/<p4>/max/<p5>/bed/<p6>/bath/<p7>/ (and so forth)', array())
 -> defaults(
       // set your defaults
       array(
        'controller' => 'seach',
        'action'    => 'result' 
      )
    )
Route::set('crazy_Route'、'search/result/city//state//zip//min//max//bed//bath//(等等),array())
->默认值(
//设置默认值
排列(
“控制器”=>“搜索”,
“操作”=>“结果”
)
)
当然,我不知道什么应该是可选的,或者什么应该存储为溢出,所以您可能需要修改它


例如,我还建议使用比p1更具描述性的占位符名称。

我做了以下操作:
路由::集('search','search/result/city//state//zip//min//max//bed//bath//cats//dogs//parking/'),数组()->默认值(数组('controller'=>'seach','action'=>'result'));并将其放在bootstrap.php中的默认路由之前。现在每个页面都是空白的,就像缺少视图一样,但我没有得到任何错误。有线索吗?