This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

sfForkedDoctrineApplyPlugin - Modify Profile Form

Questions relating to sfGuardPlugin or other user management plugins

sfForkedDoctrineApplyPlugin - Modify Profile Form

by popiiii » Wed Aug 29, 2012 8:40 am

Hi,

I've just install sfDoctrineGuardPlugin and sfForkedDoctrineApplyPlugin (sfFDA), and for sfFDA I add on my schema.yml a "Profile table" which inherit the sfGuardUserProfile table.
When I go to the "/user/new" page, I see my signup form with the sfFDA fields and all the fields that I wrote on my Profile table.

However, there are some fields in my Profile table that I don't wan't to display: like "localisation". So I try to modifiy the file located in /lib/form/doctrine/sfForkedDoctrineApplyPlugin/, by adding an unset, like this:

Code: Select all
class sfGuardUserProfileForm extends PluginsfGuardUserProfileForm
{
  public function configure()
  {
     parent::configure();
   unset($this['localisation']);

  }
}


Please ca you tell me how can I modify fields from my Profile table ?

Thanks.

popiiii
popiiii
Junior Member
 
Posts: 3
Joined: Sun May 13, 2012 10:04 pm