All I am trying to do is make a drop down menu from a table in a database. I think I need to place some code in an action class.
The table is called 'sectors. The column I would like to see in the drop down menu is is 'sectorTitle' ' The code I am using is: $this->form = new sfForm(); $this->form->setWidgets(array( 'section_id' => sfWidgetFormChoice(array( 'model' => 'sectors', 'column' => 'sectorTitle' ) ))); But I get an error message saying : Call to undefined function sfWidgetFormChoice() Does anyone know what I am doing wrong ? Thanks Reto -- 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