27 $username = $this->addElement(
'text',
'username', array(
28 'filters' => array(
'StringTrim',
'StringToLower'),
29 'validators' => array(
31 array(
'StringLength',
false, array(3, 20)),
34 'label' =>
'Your username:',
37 $password = $this->addElement(
'password',
'password', array(
38 'filters' => array(
'StringTrim'),
39 'validators' => array(
41 array(
'StringLength',
false, array(3, 20)),
43 'label' =>
'Password:',
46 $login = $this->addElement(
'submit',
'login', array(
55 $this->setDecorators(array(
57 array(
'HtmlTag', array(
'tag' =>
'dl',
'class' =>
'zend_form')),
58 array(
'Description', array(
'placement' =>
'prepend')),