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