symfony1 - Symfony: customizing sfDoctrineGuardPlugin modules -


I am trying to customize the forms of the sfGuardUser module. After installing SfGuardDoctrinePlugin, I followed the symphony cascading-configuration convention and created the following structure:

  apps / backend / modules / sfGuardUser apps / backend / Within the file / modules / SfGuardUser / config apps / backend / modules / sfGuardUser / config / generator.yml   

generator.yml file, I have suggested that the default plugin Trying to override the setting in and this:

 Generator: Category: sfDoctrineGenerator param: config: fields: first_name: label: name last_name: label: alias email address: label: email Updated_at: label: last update date_format: f list: title: edit: title: edit "%% name %%" new: title: add: [= username, name, email_address, last_ login] sort: [user Name, ACC] Filter: Display: [user name, first_name, last_name, email] A new user form: Display: "Users": [first_name, last_name, email_adress, username, password, password_name] "permissions and groups": [ Is_active, Is_super_admin, groups_li cents]  

However the form still shows the default settings. For example, it is still displaying permissions_list .

In addition, if you try to unset widgets while overriding sfGuardUserAdminForm, then you know that it also does not work.

How can I avoid it and force me to override the actual?

UPDATE 1 I've got an alternative solution, telling the group the wrong value I wanted to have the new group with the field: : [ "Permissions and group": incorrect "status and group": [is_active, is_super_admin, groups_list]

UPDATE 2 "permissions and group": first_name, last_name, email_address, username, password, password_again] Strong> This is one, but it seems that the original developers are not working with it. The ticket also includes a patches for those who are experiencing this problem like me. Unfortunately, the easiest way you would expect from the plugins' generator.yml is the Plugin. Generator.ImL file is to configure, which I do.

You can also go to the plugin generator.mil (not copy) in your app / module. There is also an interesting solution on this thread:

Comments