Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Application_Form_Login extends Zend_Form {
- public function init() {
- $this->setName('Login');
- $userName = new Zend_Form_Element_Text('username'); //rend en HTML : <input type=text name=userName...>
- $userName->setLabel('Nom: ')
- ->setRequired();
- $password = new Zend_Form_Element_Password('password');
- $password->setLabel('Mot de passe:')
- ->setRequired();
- $login = new Zend_Form_Element_Submit('login');
- $login->addDecorator(new Application_Decorator_Button());
- $login->setLabel('Envoyer');
- $this->addElements(array($userName, $password, $login));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement