Hi,
2010/2/5 ReynierPM <[email protected]>:
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.