widgetSchema['name'] = new sfWidgetFormInput(); $this->widgetSchema['email'] = new sfWidgetFormInput(); // $this->widgetSchema['tel'] = new sfWidgetFormInput(); $this->widgetSchema['note'] = new sfWidgetFormTextarea(); $this->validatorSchema['name'] = new sfValidatorString(array('required' => true)); $this->validatorSchema['email'] = new sfValidatorEmail(array('required' => true)); // $this->validatorSchema['tel'] = new sfValidatorPass(array('required' => false)); $this->validatorSchema['note'] = new sfValidatorString(array('required' => true)); sfContext::getInstance()->getConfiguration()->loadHelpers('I18N'); $this->widgetSchema->setLabels(array( 'name' => __('Jméno'), 'email' => __('E-mail'), // 'tel' => __('Telefon'), 'note' => __('Zpráva'), )); $this->widgetSchema->setNameFormat('contact[%s]'); // commonFormFunctions::setJqUiFormater($this); // commonFormFunctions::addClasses($this); } }