I am using the invalidate function 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.') ?>

Any help would 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