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
-~----------~----~----~----~------~----~------~--~---