[symfony-users] Re: sfGuard: getUsername in template

2008-03-07 Thread Pierre
l Message- > From: symfony-users@googlegroups.com [mailto:symfony- > [EMAIL PROTECTED] > On Behalf Of Pierre > Sent: 07 March 2008 18:11 > To: symfony-users@googlegroups.com > Subject: [symfony-users] Re: sfGuard: getUsername in template > > > I think I did everything correctl

[symfony-users] Re: sfGuard: getUsername in template

2008-03-07 Thread Lee Bolding
com [mailto:[EMAIL PROTECTED] On Behalf Of Pierre Sent: 07 March 2008 18:11 To: symfony-users@googlegroups.com Subject: [symfony-users] Re: sfGuard: getUsername in template I think I did everything correctly. I just realized that it works the first time I log in as admin. But the second time a

[symfony-users] Re: sfGuard: getUsername in template

2008-03-07 Thread Pierre
> $sf_user->getGuardUser()->getUsername() works for me. Did you do the > whole myUser.class.php thing ( > http://trac.symfony-project.com/wiki/ > sfGuardPluginFor10#Secureyourapplication > ) ? Can you check that $sf_user is an object of class myUser and that > myUser.class.php extends sfGuardSecu

[symfony-users] Re: sfGuard: getUsername in template

2008-03-07 Thread Pierre
I think I did everything correctly. I just realized that it works the first time I log in as admin. But the second time all the data seems to be lost. Is all the information concerning the logged user automatically stored in the session? I thought so from what I read in sfGuardSecurityUser

[symfony-users] Re: sfGuard: getUsername in template

2008-03-07 Thread Georg Sorst
Hey Pierre, $sf_user->getGuardUser()->getUsername() works for me. Did you do the whole myUser.class.php thing ( http://trac.symfony-project.com/wiki/sfGuardPluginFor10#Secureyourapplication ) ? Can you check that $sf_user is an object of class myUser and that myUser.class.php extends sfGuardSecur

[symfony-users] Re: sfGuard: getUsername in template

2008-03-07 Thread Pierre
> $sf_user->getGuardUser()->getUsername() > > I think. Yeah, that's how it should be. But apparently the getGuardUser-method returns an empty variable and I can't figure out why. A logged-in user would be supposed to have all the associated data of the user- table at hand, isn't it? Pierre

[symfony-users] Re: sfGuard: getUsername in template

2008-03-07 Thread Lee Bolding
$sf_user->getGuardUser()->getUsername() I think. -Original Message- From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pierre Sent: 07 March 2008 17:05 To: symfony users Subject: [symfony-users] sfGuard: getUsername in template Hi folks, might be a dumb questi