title: Zend Framework input validation messages
body: <p>I have the following code </p>
  
  <pre><code>$validators = array(
          'name'  =&gt; array('NotEmpty',
                          'messages' =&gt; 'A valid name is required'
          ),
  
          'email'=&gt; array(
              new Zend_Validate_Regex("^[a-z0-9]+[a-z0-9_-]*(\.[a-z0-9_-]+)*@[a-z0-9_-]+(\.[a-z0-9_-]+) *\.([a-z]+){2,}$^"),
              'messages' =&gt; array('A valid email is required',
                  Zend_Validate_Regex::NOT_MATCH=&gt;'The email is not valid',)
          ))
  </code></pre>
  
  <p>and when i check if isValid and both name and email are empty i get for both 'A valid name is required'</p>
  
  <p>the result looks like </p>
  
  <pre><code>Array
  (
      [name] =&gt; Array
          (
              [isEmpty] =&gt; A valid name is required
          )
  
      [email] =&gt; Array
          (
              [isEmpty] =&gt; A valid name is required
          )
  
  )
  </code></pre>
  
  <p>So my question is how to make to get for each the needed message in case when both are empty? I also need the email validation to work and display the proper message.
  Thanks in advance.</p>