Accessing sfUser from template
February 3rd, 2009
It’s very easy - just use the $sf_user variable
Example.:
<?php if($sf_user->isAuthenticated()):? > < ?php echo "User is authenticated"?> <?php else:?> <?php echo "User is not authenticated"?> <?php endif?>