HuyPV
Thursday, January 5, 2012
$gender = array(0 => 'Female', 1 => 'Male');
$this->widgetSchema['gender'] = new sfWidgetFormChoice(array('choices' => $gender)) ;
$this->setDefault('gender', 1);
Title:
symfony form setDefault for choice
Description:
$gender = array(0 => 'Female', 1 => 'Male'); $this->widgetSchema['gender'] = new sfWidgetFormChoice(array(...
...
Rating:
4