Re: [symfony-users] Re: Question about sfWidgetFormChoice

2010-05-31 Thread Javier Garcia
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

[symfony-users] Re: Question about sfWidgetFormChoice

2010-03-05 Thread Raphael Schumacher
array('' ='-', range(14,130)) ...seems to me a bit a strange construction, a mix of associative and non-associative array elements. In any case the 'choices' option needs a associative array, so it may work better if you put together a proper associative array? E.g. like: $choices