"choices" => array( "choice1" => "choice1", "choice2" => "choice2", );
On Tue, Jun 15, 2010 at 10:24, Joe <[email protected]> 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
