Re: [symfony-users] Modify sfGuardUserForm fields

2010-01-14 Thread Javier Garcia

On 01/14/2010 06:30 AM, ozgur ince wrote:

you should do your changes in
plugins\sfDoctrineGuardPlugin\lib\form\doctrine\sfGuardUserAdminForm.class

or

change the form class in
plugins\sfDoctrineGuardPlugin\modules\sfGuardUser\config\generator.yml
   

Hi,

you should never modify the code or the structure inside of the plugins 
(as ozgur ince says). You should extended it as you are trying.


I dont know if it will work, but ¿have you try to modify the 
widgetSchema instead of validatorSchema (in the same function configure() )?


Javi



-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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.




Re: [symfony-users] Modify sfGuardUserForm fields

2010-01-13 Thread ozgur ince
you should do your changes in
plugins\sfDoctrineGuardPlugin\lib\form\doctrine\sfGuardUserAdminForm.class

or

change the form class in
plugins\sfDoctrineGuardPlugin\modules\sfGuardUser\config\generator.yml

On Wed, Jan 13, 2010 at 12:46 AM, Jose San Gil jsangi...@gmail.com wrote:
 Hi folks!

 I'm trying to modify the validation of the 'permissions_list' field
 generated in the basesfGuardUserForm.class.php. I want to set the
 'required' option to 'True'. I tried with this:

 class sfGuardUserForm extends PluginsfGuardUserForm
 {
  public function configure()
  {
      $this-validatorSchema['permissions_list']-setOption
 ('required', True);
  }
 }

 But it doesn't take effect.

 Also if a try to set a different widget to permissions_list, it
 doesn't works.

 I think this is not the right way to do that. Could you help me?

 Thanks
 PD: Excuse me for my english

 --
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@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.




-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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.