Exemplo n.º 1
0
 public function configure()
 {
     parent::configure();
     $this->disableLocalCSRFProtection();
     unset($this['remember']);
     $this->widgetSchema['username']->setLabel('Email address');
 }
Exemplo n.º 2
0
 public function configure()
 {
     parent::configure();
     $this->widgetSchema->getFormFormatter()->setTranslationCatalogue('apostrophe');
 }
 /**
  * @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());
 }