Thanks for the tip Miles. In the end, we realised that we can do the redirect in the view with standard php, as long as we put it in a nocache block. For us that's better, because it means our less technical html guys can do this, without having to edit the controllers...
On Jan 12, 3:03 am, Mark <[email protected]> wrote: > Routing 'pages/christmas_specials' should work. > > On Jan 11, 4:00 pm, the_woodsman <[email protected]> wrote: > > > Hi Bakers, > > > I need to do a permanent redirect from one of my static pages, for > > example /pages/christmas_specials > > > Normally I'd do this in my controller, but I can't because there's no > > christmas_specials action in the pages controller. > > > I tried to keep the .ctp file and redirect at the top of it, but that > > seems to conflict with view caching. > > > What's the best way to do this? Somewhere in the pages controller? Via > > routes? another method? > > > Thanks in advance... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
