zend-validate

Zend changing validation error behavior: wrapping element in another tag

I've set a validator for the email so it can't be empty. This is the markup of the usual form that zend_form generates: <dt id="email-label"><label class="required" for="email">Email</label></dt> <dd id="email-element"> <input type="text" value="" id="email" name="email"> </dd> When validation fails, zend_form adds a new ul class...

Problem with zend validate on zend form element

Hi all, I used to have this form element to validate an email and display an error message if the format was invalid: $email_users = new Zend_Form_Element_Text('email_users'); $email_users->setLabel('Email:') ->setRequired(false) ->addFilter('StripTags') ->addFilter(...