Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Application_Form_Login extends Landing_Form
- {
- public function init()
- {
- $this->setName("login");
- $this->setMethod('post');
- $this->addElement('text', 'username', array(
- 'filters' => array('StringTrim', 'StringToLower'),
- 'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
- 'required' => true,
- 'description'=>'enter your username',
- 'label' => 'Username:',
- ));
- $this->addElement('password', 'password', array(
- 'filters' => array('StringTrim'),
- 'validators' => array(
- array('StringLength', false, array(0, 50)),
- ),
- 'required' => true,
- 'label' => 'Password:',
- ));
- $this->addElement('submit', 'login', array(
- 'required' => false,
- 'ignore' => true,
- 'clearDecorators',
- 'decorators' => $this->buttonDecorators,
- ));
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement