Guest User

Untitled

a guest
Jun 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. // Add the email element
  2. $email = new Zend_Form_Element_Text('email', array(
  3. 'label' => 'Email:'
  4. ));
  5. $email->setRequired(true)
  6. ->addFilter('StringTrim')
  7. ->addValidator('EmailAddress')
  8. ->addErrorMessage('Your email')
  9. ->setDecorators($this->elementDecorators);
  10. $this->addElement($email);
Add Comment
Please, Sign In to add comment