I am making some changes to a CMS someone else has developed using
cake. Currently all pages are served up using a controller called
sites so any given url will look like:
/sites/page-id
However is there a way using Routes to direct the simple /page-id to
the sites controller.
My Routes currently looks like this:
Router::connect('/', array('controller' => 'sites', 'action' =>
'index'));
Router::connect('/sites/*', array('controller' => 'sites', 'action' =>
'page'));
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---