Hi,

I'm trying to extend the sfGuardUserAdminForm that I use with "edit"
to make a "my profile" form. This form would have less fields. I tried
unsetting the fields in the form class
(  unset($this['groups_list']);  ), but since I'm still in the "edit
action" in generator.yml, I get an error saying that there's no
widgets called 'groups_list'.

So I'm trying to have something like that :

      form:
        class: sfGuardUserAdminForm
        display:
          "":      [username, password, password_again, is_active]
          Profile: [groups_list,Profile]
      edit:
        title: Edit user %%username%%
        fields:
      new:
        title: Add user

      myProfile:
        title: My profile
        display:
          "":      [username, password, password_again,Profile]


If I try that, symfony throws an error, saying the yml file couldn't
be parsed.

How can I get that to work ? And if I can't, how can I display another
form in the same module with different parameters ?

Thanks a lot,
John

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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