Re: validate - unique - error message
http://api.cakephp.org/class/form-helper#method-FormHelpererror Maybe this helps... --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: validate - unique - error message
Hello Marcelo, > Check the CakePHP version you're using is the same > used in the tutorial. It is not (I am using the latest version), but that does not help me to learn how I can get error messages. 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: validate - unique - error message
On Sun, Oct 11, 2009 at 11:03 AM, Melanie Sommer 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---