Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function init()
- {
- $token = new Zend_Form_Element_Hash('token');
- $token->setTimeout($this->_tokenTimeout)
- ->setErrorMessages($this->_messages['token']['Identical'])
- ->setDecorators(array(
- array('ViewHelper')
- ));
- $username = new Zend_Form_Element_Text('username');
- $username->class = 'formtext';
- $username->setLabel('Username')
- ->setDecorators(array(
- array('ViewHelper',
- array('helper' => 'formText'))
- ));
- $password = new Zend_Form_Element_Password('password');
- $password->class = 'formtext';
- $password->setLabel('Username')
- ->setDecorators(array(
- array('ViewHelper',
- array('helper' => 'formPassword'))
- ));
- $submit = new Zend_Form_Element_Submit('submit');
- $submit->class = 'formsubmit';
- $submit->setValue('Login')
- ->setLabel('Login')
- ->setDecorators(array(
- array('ViewHelper')
- ));
- $this->addElements(array(
- $username,
- $password,
- $submit,
- $token
- ));
- $this->setDecorators(array(
- 'FormElements',
- 'Fieldset',
- 'Form'
- ));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement