It is inside a method.

On Feb 21, 1:51 am, "Grzegorz Pawlik" <[EMAIL PROTECTED]>
wrote:
> where do You call this function? Is it in some of your controllers
> method or callback?
>
> On Feb 21, 2:44 am, "josesquared" <[EMAIL PROTECTED]> wrote:
>
> > I am using theinvalidatefunction in the controller and it is not
> > triggering the tagErrorMsg.  I also tested and it doesn't seem to
> > block the save either.  The validation works fine when I construct the
> > validation array in the Model but I just want to know if I'm able to
> > do it through the controller.  All the documentation I've read seem to
> > say it's possible but I haven't found any luck
>
> > Here's my code:
>
> > In the controller:
> >    $this->User->invalidate('email');
>
> > In the view:
> >    <?php echo $html->input('User/email', array('size' => '35',
> > 'class'=>'formbox'))?>
> >    <?php echo $html->tagErrorMsg('User/email', 'Email Address is
> > required.') ?>
>
> > Anyhelpwould be appreciated.


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

Reply via email to