Friday, July 30, 2010

Re: Validation errors not shown in a form

Thanks Norman and Marco.
Yes I'm creating it with $form helper.
The weird thing is that it was showing errors normally as it would,
but another guy included some code and another input fields and after
that suddenly the errors stopped showing. And I don't see anything
abnormal in this guy's added code and inputs.
As a test, I also removed what he did and the same thing happened,
$this->Themodel->validationErrors contains the validation errors, but
the form is not showing those errors anymore.

It's a long long code, so I'll try to paste it in a bin and let you
know then.

Thanks!

On 30 jul, 04:13, Marco <marco.perg...@gmail.com> wrote:
> Are you sure you are using the $form->input for all the fields and
> $form->create?
>
> On Jul 30, 2:19 am, Norman Paniagua <normanpania...@gmail.com> wrote:
>
> > Can you show your code?
> > ---
>
> > Norman Paniagua
>
> > 2010/7/29 Roland Pish <rolandp...@gmail.com>
>
> > > Hi.
>
> > > Suddenly a form stopped showing the error messages with the <div
> > > class="error-message"> beside input fields with validation.
> > > When a validation error occurs. If I debug($this->Themodel-
> > > >validationErrors) it shows me the errors but there is no <div
> > > class="error-message"> anymore.
>
> > > What could be wrong?
>
> > > I don't remember changing anything in cake's core.
>
> > > Any clue on this?
>
> > > Regards
>
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others
> > > with their CakePHP related questions.
>
> > > You received this message because you are subscribed to the Google Groups
> > > "CakePHP" group.
> > > To post to this group, send email to cake-php@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscr...@googlegroups.c om>For more options, visit this group at
> > >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: