2009年4月5日星期日

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

I have exactly the same problem: valid form fields that are still showing up
on getErrors().

I've decided to use Zend_Form->getMessages() instead, which works fine.

Yi Tang-2 wrote:
>
> 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
>>>
>>>
>>>
>>
>>
>
>

--
View this message in context: http://www.nabble.com/form-%3EgetErrors%28%29-returning-every-field-including-valid-fields-tp22606338p22894062.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: