I think it should be pretty simple. In your app_controller, you could
probably just add this, likely in the afterFilter() method, so that
you can process any login info first:
function afterFilter () {
if ( $isUserLoggedIn ) {
$this->layout = 'logged_in_layout';
} else {
$this->layout = 'some_other_layout';
}
}
In real life, you probably don't need the else statement - just make
that the default, and only change the layout if logged in (or vice
versa).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---