I am trying to implement a Gender Selection widget. For that I use
sfWidgetFormChoice.

My code for the widget is as follows:

<?php
class myWidgetFormGender extends sfWidgetFormChoice
{
  protected function configure($options = array(), $attributes =
array())
  {
    $choices = array(1=>'Male',2=>'Female');
    $options = array('choices' => $choices, 'expanded' => true);
    parent::configure($options, $attributes);
  }
}
?>

However when I run it, I would get the following error message:

myWidgetFormGender requires the following options: 'choices'.


Is there something else I need to do?

Thank you.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to