Yes I will be using fbml also. I guess I can use explicit URLs. No big deal. Thanks for the excellent help.
On Jun 15, 11:49 pm, "Adam Royle" <[email protected]> wrote: > Sorry, I never used reverse routing like that. Maybe someone else with more > experience can help out? > > With my facebook app I used fbml so my views were custom anyway which meant > I had to use explicit urls. > > Cheers, > Adam > > ----- Original Message ----- > From: "Greg Baker" <[email protected]> > To: "CakePHP" <[email protected]> > Sent: Tuesday, June 16, 2009 11:36 AM > Subject: Re: routing to control layout > > 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 -~----------~----~----~----~------~----~------~--~---
