"choices" => array( "choice1" => "choice1", "choice2" => "choice2", );
On Tue, Jun 15, 2010 at 10:24, Joe <joe.hakim.ra...@gmail.com> wrote: > I am working on a module generated by the admin generator. I added the > sfWidgetFormChoice widget to the lib/form file, like this : > > class MyModule extends BaseMyModule > { > public function configure() > { > $this->widgetSchema['field'] = new sfWidgetFormChoice (array( > 'choices' => array ('Choice1', 'Choice2') > )); > } > } > > My problem is that the choices are converted to '0' and '1' before > Insert(). I would like to insert the values of 'choices' (in this case > Choice1 and Choice2). > > Help would be appreciated. I hope I am clear enough. > > -- > 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 > -- 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