validate - unique - error message
Hello,
I am using code from the bakery tutorials to validate my form elements
for unique records.
http://bakery.cakephp.org/articles/view/checking-for-duplicate-records-unique-record
(I am using the code of comment no. 5 as I need to validate for a
unique combination of fields)
It works fine, but I did not manage to show error messages when
validation is not passed.
I uncommented
// $this->invalidate('unique_'.$field);
in app_mode.php
and put
echo $html->tagErrorMsg('User/unique_username', 'Enter another
username, this is already used.');
into my view but this gives me the error message
"Method HtmlHelper::tagErrorMsg does not exist"
What do I need to do?
Thanks for any help
Melanie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home