Paste the code you have in your thtml file.  You should have a $this-
>tagErrorMsg somewhere in there.

On Apr 3, 7:14 am, "Preloader" <[EMAIL PROTECTED]> wrote:
> Hello bakers,
>
> Is it possible to manually invalidate a form field in order to show an
> error-message?
>
> The field 'image' is not present in the $validate array of the News
> model. But i want it to be invalidated, when a file upload fails.
>
> if ($fileUploadFailed)
> {
>     $this->News->invalidate('image', 'Image upload failed!');
>
> }
>
> But when i do
>
> $this->validateErrors($this->News)
>
> I don't get the error div for 'image'.
>
> Has anyone an idea, how to solve this problem?
>
> Many thx, Christoph :-)


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

Reply via email to