Ok, I have found the solution;
class myWidgetFormGender extends sfWidgetFormChoice
{
protected function configure($options = array(), $attributes =
array())
{
$this->addOption('choices', array(1=>'Male',2=>'Female'));
parent::configure($options, $attributes);
}
}
On Oct 27, 7:11 pm, Yuretsz <[EMAIL PROTECTED]> wrote:
> $this->widgetSchema['sex'] = new sfWidgetFormSelect(array('choices' =>
> array('male', 'female')));
>
> On Mon, Oct 27, 2008 at 1:32 PM, kiszl <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > This might not be the perfect solution, but did you try overriding the
> > constructor instead of the configure method ?
>
> > Zoltan.
>
> --
> ============================
> Regards...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---