开发者

remove group and permissions options sfDoctrineGuardPlugin

i've made to diferent forms for my backend app, one for us开发者_开发技巧ers of group admins and another for users of group clients, becuase clients have additional info that admins don't, i already set the groups by default in the code, as they are no required to create an user, i want to remove this options from the form, i already tried in the generator.yml

form:
    class: sfGuardClientUserForm
    display:
      "User":                   [first_name, last_name, email_address, username, password, password_again]
      "Permissions and groups": [is_active]

but the options keep showing, so, i tried unsetting the widget in the form class

unset($this['groups_list']);

but i get an exception saying the widget doesn't exist

how can i remove this options?? group list and permissions, they are not required anyway

thanks


You probably copied generator.yml from plugins to your app directory and editing the latter. This is a known issue. Symfony will still read generator.yml in plugin's dir. So you have to either delete the file in the plugin's dir (the easiest way), or read here for some more involved solutions: http://oldforum.symfony-project.org/index.php/m/43279/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜