public function setup()
 {
     parent::setup();
     $this->setWidget('Nivells_idNivells', new sfWidgetFormInputHidden());
     $this->setWidget('Habilitat', new sfWidgetFormInputHidden());
     $this->setWidget('captcha2', new sfWidgetFormInputCaptcha(array(), array()));
     $val1 = date('H', time()) % 10 + 1;
     $val2 = date('d', time()) % 10 + 1;
     $sol = $val1 + $val2;
     $inv = "El resultat %value% no és correcte.";
     $this->setValidator('captcha2', new sfValidatorNumber(array('min' => $sol, 'max' => $sol), array('invalid' => $inv, 'max' => $inv, 'min' => $inv)));
     $this->widgetSchema->setLabel('captcha2', 'Verificació: ');
 }
 public function setup()
 {
     parent::setup();
     $this->setWidget('Nivells_idNivells', new sfWidgetFormInputHidden());
     $this->setWidget('Habilitat', new sfWidgetFormInputHidden());
 }