Further to that, here's a way I've done the login/logout button that
works with a 'users' controller that has 'login' and 'logout' actions/
methods:

in app_controller.php 'beforeRender' function:

// Login/Logout navigation menu item
if($this->Session->check('User') == false){
        $this->set('lognav','login');
}else{
        $this->set('lognav','logout');
}

in the view/element:

<?php echo $html->link('&nbsp;'.ucwords($lognav), '/users/'.$lognav,
null,false,false); ?>

On May 3, 5:32 am, Daniel Hofstetter <[EMAIL PROTECTED]> wrote:
> It is $session->check('User')
>
> --
> Daniel Hofstetterhttp://cakebaker.42dh.com


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

Reply via email to