Tuesday, September 29, 2009

Re: Display Error

On Tue, Sep 29, 2009 at 12:34 AM, Dave Maharaj :: WidePixels.com
<dave@widepixels.com> wrote:
> I need to place an error in a specific spot so I used the
>
> <?php echo $form->error($model . $field); ?>
>
> But the error shows up in 2 places now. Where I have my error code and
> beside the field. How can I remove it from the field so it only displays in
> the spot i want?

$form->input make an internal call to $form->error by default.
As John said, if you're using $form->input, you must to set
"'error'=> false" in the options.

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

--~--~---------~--~----~------------~-------~--~----~
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: