0
我需要設置路由基於搜索PARMS(我使用CakeDC搜索插件)CakePHP的路由 - 搜索參數parms
URL應該是這樣的:/apartments/studio-apartments
,而不是這樣的:/apartments/propertytype_id:1
我已經嘗試添加像這樣的路線:
Router::connect('/apartments/studio-apartments', array('controller'=>'apartments', 'action'=>'index'), array('pass'=>array('propertytype_id:1')));
或
Router::connect('/apartments/studio-apartments', array('controller' => 'apartments', 'action' => 'index', 'propertytype_id:1'));
從蛋糕預定