Thanks for the advice, it works now. The only change that I had to
make is to make it beforeFilter(), instead of afterFilter() in order
to make it work now.
On Jan 7, 9:01 pm, Robby Anderson <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---