On Jan 26, 5:30 am, justradar <[EMAIL PROTECTED]> wrote:
> i'm trying to use this below code snippet and i'm having trouble ...
>
> // this code is located in app/app_controller.php
> function beforeRender() {
> if ($isUserLoggedIn){
> $this->layout = 'new_layout';
> } else {
> $this->layout = 'default';
> }
> }
>
> $isUserLoggedIn obviously using this the way it is in the code
> returns a variable not defined message
>
> i'm not quite sure how to check if the user is logged in?? here's my
> login code
use $this->Session->check or $this->Session->read and see if you
already saved their usename in the session.
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---