Esempio n. 1
0
 public function __construct(array $initialFormValues = null)
 {
     parent::__construct($initialFormValues);
     $email = new Element\Email('email');
     $password = new Element\Password('password');
     $this->add($email)->add($password);
 }
Esempio n. 2
0
 public function __construct(array $initialFormValues = null)
 {
     parent::__construct($initialFormValues);
     $email = new Element\Hidden('email');
     $securityKey = new Element\Hidden('security_key');
     $password = new Element\Password('password');
     $passwordConfirm = new Element\Password('password_confirm');
     $this->add($email)->add($securityKey)->add($password)->add($passwordConfirm);
 }