setName("RecoverPassword"); $this->setMethod('post'); $this->addElement('text', 'email', array( 'filters' => array('StringTrim'), 'validators' => array( array('StringLength', false, array(0, 30)), ), 'required' => true, 'label' => 'Email:', )); $this->addElement('submit', 'recoverPassword', array( 'required' => false, 'ignore' => true, 'label' => 'Recover', )); } }