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['age'][$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.
Any idea?
Regards
Javi