On Sun, Oct 11, 2009 at 11:03 AM, Melanie Sommer
<[email protected]> wrote:
>
> 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?

Check the CakePHP version you're using is the same
used in the tutorial.

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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