I have a hyperlink defined as:
echo $html-link(__('Discuss', true), array('controller' = 'cars',
'action'='view', $car['Car']['id'], $car['Car']['make'],
$car['Car']['model']));
How can I define a route that changes the url from
'/cars/view/14/nissan/maxima' to '/cars/nissan/maxima'??
I did
The url is what tells cake what to do. If you hide the id you remove
the id and Cake will have not idea what id you want. The url must
contain some kind of unique identifier...but not specifically the
numeric id from the database.
You need to alter your action so it can use the make and model