Hi,

I have a choice widget in a form:

|$years=  range(14,130);
$this->widgetSchema['age']  =  new  sfWidgetFormSchema();
foreach  (array('from',  'to')  as  $value)
{
    $this->widgetSchema['edad'][$value]  =  new  sfWidgetFormChoice(array(
        'label'  =>  $value,
        'choices'  =>  array_merge(array(''  =>    
'-'),array_combine($years,$years))));
}
|

If i choose for example 14 and in the action that receives the form is written something like this:

|var_dump($valores_widgets['age']['from']);
|

that shows 0. But I expected 14.

As you can imagine, if i choose 15 it shows 1.

Any idea?

--

Javi

Ubuntu 8.04 - Symfony 1.3

--
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

Reply via email to