setting a boolean filter field in the forms framework symfony 1.2


$this->widgetSchem['active'] = new sfWidgetFormChoice(array(‘choices’ => array(” => ‘yes or no’, 1 => ‘yes’, 0 => ‘no’)));
$this->validatorSchem['active'] = new sfValidatorChoice(array(‘required’ => false, ‘choices’ => array(”, 1, 0)));

  1. No comments yet.
(will not be published)