Don't change the widget at all, it's not needed!

Just change 'expanded' => true to 'expanded' => false and you have your combo 
box.


Cheers, Daniel

On Jan 7, 2010, at 1:09 PM, l3ia-etu wrote:

> hello,
> 
> i would like to change the widget:
> //      $this->widgetSchema['type'] = new sfWidgetFormChoice(array
> ('choices' => Doctrine::getTable('JobeetJob')->getTypes(),'expanded'
> => true));
> 
> 
> to have a combo box instead of radio buttons, so i use:
>               $this->widgetSchema['type'] = new 
> sfWidgetFormDoctrineChoice(array
> ('choices' => Doctrine::getTable('JobeetJob')->getTypes(), 'model'
> => ));
> 
> but where can we find the list of 'model', in the class:
> 
> http://www.symfony-project.org/api/1_4/sfWidgetFormDoctrineChoice
> 
> thanks
> -- 
> You received this message because you are subscribed to the Google Groups 
> "symfony users" group.
> To post to this group, send email to symfony-us...@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.
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@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