Hi folks,

might be a dumb question but how can I get the username of an  
authenticated user in my template?

I use symfony 1.0.7 and just installed sfGuardPlugin. So far  
everything works fine but when i want to output the name of the  
currently logged user like this:

<?php echo $sf_user->getUsername() ?>

I get the following error:

Fatal error: Call to a member function getUsername() on a non-object  
in /Users/ralf/Sites/picit/plugins/sfGuardPlugin/lib/user/ 
sfGuardSecurityUser.class.php on line 139

I configured everything as far as I can see like described in the  
sfGuardPluginExtraDocumentation.
I can login and logout and everything is kind of secure, but I don't  
get the user object.

Any suggestions?

Thanks,
Pierre

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to