Yes but I tried adding the :id in the route, but it didnt work. Heres
the current code.
The reason for both id/slug(title) is that previously it was based on
id, and that would be a lot of links to go through and change.
Router::connect('/games/view/:title-:id', array('controller' =>
'games', 'action' => 'view'), array('pass' => array('id', 'title'),
'id' => '[0-9]+', 'title' => '[a-zA-Z0-9_-]+'));
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---