Ahh thank you, that works nicely. How about if I want the URLs to persist throughout the app, so that $html->link(), say, would point to /AppName/facebook/controller/action if $this->params['facebook'] were set? Would this be possible using routing or would I have to do something else?
On Jun 15, 10:36 pm, "Adam Royle" <[email protected]> wrote: > Sure... > > Router::connect('/AppName/facebook/:controller/:action/*', array('facebook' > => 1)); > > then in your app controller just check for > > $this->param['facebook'] > > ----- Original Message ----- > From: "Greg Baker" <[email protected]> > To: "CakePHP" <[email protected]> > Sent: Tuesday, June 16, 2009 10:28 AM > Subject: routing to control layout > > > I'm trying to make an app that works standalone as well as with > > facebook. Is it possible to define routing so that if the URL > > matches /AppName/facebook/* it will route to /AppName/* and set a > > parameter facebook=true so I can catch this in the AppController and > > render it using my facebook layout? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
