cakephp routing retrieve parameter from url to redirect
I am using cakephp v2.3.8 and struggle a bit with the routing.
The old url is www.domain.com/properties.aspx?prop=1999
I want to route this to the properties controller with id = 1999 so my url
will look like: www.domain.com/properties/view/1999
In my routes.php i strip the .aspx out of the url but struggle with this
last bit.
Router::parseExtensions('htm','html','aspx');
This is how close I am:
Router::connect('/properties', array('controller' => 'properties',
'action' => 'view', ??? '));
Any help much appreciated.
No comments:
Post a Comment