コード例 #1
0
 public function configure()
 {
     parent::configure();
     $this->disableLocalCSRFProtection();
     unset($this['remember']);
     $this->widgetSchema['username']->setLabel('Email address');
 }
コード例 #2
0
ファイル: aFormSignin.class.php プロジェクト: verenate/gri
 public function configure()
 {
     parent::configure();
     $this->widgetSchema->getFormFormatter()->setTranslationCatalogue('apostrophe');
 }
コード例 #3
0
 /**
  * @see sfForm
  */
 public function configure()
 {
     parent::configure();
     $this->widgetSchema['username'] = new sfWidgetFormInputEmail(array('label' => 'Email Address'), array('onblur' => "this.value=this.value.replace(/\\s+/g, '');", 'placeholder' => '*****@*****.**'));
     $this->validatorSchema->setPostValidator(new sfGuardValidatorUserApi());
 }