Advertisement
Guest User

ZEND LOGIN

a guest
Oct 18th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. class Application_Form_Login extends Zend_Form {
  2. public function init() {
  3. $this->setName('Login');
  4. $userName = new Zend_Form_Element_Text('username'); //rend en HTML : <input type=text name=userName...>
  5. $userName->setLabel('Nom: ')
  6. ->setRequired();
  7. $password = new Zend_Form_Element_Password('password');
  8. $password->setLabel('Mot de passe:')
  9. ->setRequired();
  10. $login = new Zend_Form_Element_Submit('login');
  11. $login->addDecorator(new Application_Decorator_Button());
  12. $login->setLabel('Envoyer');
  13. $this->addElements(array($userName, $password, $login));
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement