I found the solution
I set an username on an variable, and after Logout this variable i set
to null
:)
if(!empty($username)) {
echo $html->link('Logout', array
('controller'=>'users','action'=>'logout'));
} else {
echo $html->link('Login', array
('controller'=>'users','action'=>'login'));
}
?>
many greetings
Marcus Radisch
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---