Hi, 2010/2/5 ReynierPM <rper...@uci.cu>: > Hi: > I need to know if a user is logged in or not from my layout.php file, is > this possible? How? > -- > Cheers > ReynierPM > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > >
I'm using something like this <?php if ($sf_user->isAuthenticated()): ?> <li> <?php echo link_to('Wyloguj', '@sf_guard_signout') ?> </li> <?php else: ?> <li> <?php echo link_to('Logowanie', '@sf_guard_signin') ?> </li> <li> <?php echo link_to('Rejestracja', '@sf_guard_register') ?> </li> <?php endif; ?> Regards, M -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.