OK, thanks for your patience on this. You were right the first time, using /* will work. However when I do this I start getting timeouts. I worked out that the sites_controller was calling other controllers using the requestAction() function. By adding all these controllers to the Routes I managed to get the front end working. However the CMS backend uses the Admin routing option so now the backend is not working, the same timeout issue. I've tried adding some of the controllers to the Routes and testing them but its still not working.
Have you got any suggestions? Thanks a lot for your help by the way. On Mar 18, 2:52 pm, "dr. Hannibal Lecter" <[email protected]> wrote: > Try removing that first route.. > > On Mar 18, 7:11 pm,koalakid<[email protected]> wrote: > > > Thanks for the reply. I tried that but I just get a timeout error. My > > Routes looks like this: > > > Router::connect('/', array('controller' => 'sites', 'action' => > > 'index')); > > Router::connect('/*', array('controller' => 'sites', 'action' => > > 'page')); > > > On Mar 18, 1:25 pm, "dr. Hannibal Lecter" <[email protected]> wrote: > > > > How about: > > > > Router::connect('/*', array('controller' => 'sites', 'action' => > > > 'page')); > > > > Of course, you need to consider the option when someone doesn't send > > > you the page-id.. > > > > On Mar 18, 6:00 pm,koalakid<[email protected]> wrote: > > > > > 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 -~----------~----~----~----~------~----~------~--~---
