Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Application_Form_LoginForm extends Zend_Form
- {
- private $_action;
- public function __contruct($action)
- {
- $this->_action = $action;
- parent::__construct();
- }
- public function init()
- {
- $this->setAction($this->_action)
- ->setMethod('post')
- ->setAttrib('id', 'loginForm');
- $username = $this->addElement('text', 'username', array('label', 'Benutzername'));
- $password = $this->addElement('password', 'password', array('label', 'Passwort'));
- $submit = $this->addElement('submit', 'Login');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement