Re: [symfony-users] How to access user details with sfGuard

2010-03-22 Thread Fabrizio Scimia
Thanks a lot guys, It works! 2010/3/21 Stéphane > Hi, > > You could do an admin-gen for the sf_guard_user (overload the plugin's > one), then embed the profile form in your sfGuardUserForm::configure(); > using $this->embedRelation("profile*"); and hide the user properties you > don't want to sh

Re: [symfony-users] How to access user details with sfGuard

2010-03-21 Thread Stéphane
Hi, You could do an admin-gen for the sf_guard_user (overload the plugin's one), then embed the profile form in your sfGuardUserForm::configure(); using $this->embedRelation("profile*"); and hide the user properties you don't want to show (username, password, etc) using generator.yml configuration

Re: [symfony-users] How to access user details with sfGuard

2010-03-21 Thread Lea Hänsenberger
Hi Fabrizio, in action classes you can access the user with $this->getUser()->getGuardUser() and the profile with $this->getUser()->getProfile(). In a template you can access them with $sf_user->getGuardUser() ...->getProfile(). Cheers, Lea On Mar 21, 2010, at 17:06 , Fabrizio Scimia wrote: >

[symfony-users] How to access user details with sfGuard

2010-03-21 Thread Fabrizio Scimia
Hello, I'm learning to use symfony and I have a question related to user details. I want to create a simple page that show the user details after the authentication. I created a frontend application and I installed the sfDoctrineGuardPlugin. I enabled the modules sfGuardAuth,sfGuardUser,sfGuardG