setWidgets(array( 'text' => new sfWidgetFormTextarea(), 'typeofmessage' => new sfWidgetFormInputHidden(), 'communication_id' => new sfWidgetFormInputHidden() )); $this->setValidators(array( 'text' => new sfValidatorString(array('required' => true)) )); $this->widgetSchema->setLabels(array( 'text' => 'Text zprávy:' )); ///$this->allowExtraFields(); $this->widgetSchema->setNameFormat('request_form[%s]'); parent::setup(); } }