You can't do that over the generator.yml You have to create it by yourself - create an action methods, routing for them (edit, update), create a new form class something like sfGuardUserProfileForm.class.php ... extended from the base form class, templates - you can copy them from the cache folder because they will be same or almost the same as editUser template.
On 26 kvě, 11:27, John <drskulls...@gmail.com> wrote: > 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en