I've been toying with invalidate to do custom error handling for a
password change form and I've run into some confusion.
One example in which I'm calling invalidate is...
if(md5($this->data['User']['password']) != $someone['User']['password']) {
$this->User->invalidate('User/password');
}
This stops the form from saving, but does not invoke the default error
msg for the field (created by tagErrorMsg())...
<label for="password">Old Password:
<?php echo $html->password('User/password', array('size' => 20)); ?>
<?php echo $html->tagErrorMsg('User/password', 'error')?>
</label>
Is it supposed to invoke the default message?
Is there a way to set the message that the associated tagErrorMsg() displays?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---