Hi Preloader,
in the model use $this->invalidate(string 'field',string
'errormessage);
I do it in the beforeValidate callback of the model. I use it in a 1.2
cake project.
:jc
On 3 Apr., 19:35, "Preloader" <[EMAIL PROTECTED]> wrote:
> Hi Christopher,
>
> no, I don't use $html->tagErrorMsg ... sorry, i didn't mention that i
> use Cake 1.2!!
>
> This is what I do in my view:
>
> echo $form->input('News.image', array('type' => 'hidden', 'error' =>
> 'Error'));
>
> When put the 'image' field to the $validate array of my News model,
> the validation works.
>
> var $validate = array(
> 'headline' => VALID_NOT_EMPTY,
> 'image' => '/invalidateworkswiththis/'
> );
>
> Anyone?
>
> Thank you, Christoph
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---