On 03/05/2010 02:36 PM, Raphael Schumacher wrote:
$choices =array_merge(array('' => '-'), array_combine(range(14,130),
range(14,130)));
That shows the select options correctly but i dont get the choosen
values. I mean,
if i choose for example 14, and in the action write something like this:
var_dump($valores_widgets['edad']['de']);
that shows 0.
If i just write this below the values are right :
$choices = array_combine(range(14,130),range(14,130)));
Here you have the widget definition:
$this->widgetSchema['edad'] = new sfWidgetFormSchema();
foreach (array('de', 'a') as $value)
{
$this->widgetSchema['edad'][$value] = new
sfWidgetFormChoice(array(
'label' =>
$value,
'choices'
=> ...
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