2009年3月19日星期四

Re: [fw-mvc] form->getErrors() returning every field including valid fields

there is definitely no errors with some of the fields, the errors element is set to an empty array when printed.  the invalid fields have the errors element set to an array containing the specific error type.

Just wanted to see if anybody has used Zend_Form->getErrors() here and ran into the same issue.

Abraham Block wrote:
Maybe there's an error in every field on your form? Is it possible to post the code that you're using for this?  On Thu, Mar 19, 2009 at 2:17 PM, Yi Tang <ytang@mbira.com> wrote:    
Hi all,  According to the documentation, Zend_Form->getErrors() should only return fields with validation errors.  But when I called that function on a validated form, it returned every field in the form.  Any reason for this?  Yi       
   

没有评论: