Advertisement
Guest User

Untitled

a guest
May 14th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. <?php
  2. class Application_Form_LoginForm extends Zend_Form
  3. {
  4.    
  5.     private $_action;
  6.    
  7.     public function __contruct($action)
  8.     {
  9.         $this->_action = $action;
  10.         parent::__construct();
  11.    
  12.     }
  13.     public function init()
  14.     {
  15.         $this->setAction($this->_action)
  16.             ->setMethod('post')
  17.             ->setAttrib('id', 'loginForm');
  18.        
  19.         $username = $this->addElement('text', 'username', array('label', 'Benutzername'));
  20.        
  21.         $password = $this->addElement('password', 'password', array('label', 'Passwort'));
  22.        
  23.         $submit = $this->addElement('submit', 'Login');
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement