Im trying to use session variables in my /lib/mylogger.php class

everytime i reference
$username =  sfContext::getInstance()->getUser()-
>getAttribute('Username');

the code says
Fatal error: Call to a member function getAttribute() on a non-object

but I've been struggling and I even tried doing a
print_r(sfContext::getInstance()) and i see the attribute in the page
but it wont allow me to access it ?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to