我需要根据搜查区(使用CakeDC搜索花板的Im)建立路由。
URL should look like this: /apartments/studio-apartments
instead of this: /apartments/propertytype_id:1
I ve already tried adding routes like this one:
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 ));
或 that one from Cake book