Thanks, you were spot on, I just updated to the latest SVN checkout,
and now it seems to work. Although the new blank rule, instead of the,
soon deprecated, VALID_NOT_EMPTY, still doesnt work.
On 10 Jun., 07:44, Dr. Tarique Sani [EMAIL PROTECTED] wrote:
On 6/9/07, Mickiii [EMAIL PROTECTED]
How do I add several validationrules per field? I have tried:
var $validate = array(
'glaccount_no' = array(
array(
'rule' = array('blank'),
'message' = 'test1'
I had trouble to make it work too but this is the way I did it.
Here I have a User model with entries username and password.
Message is what you want to be shown when the error comes up (Sorry, I
have it in spanish). And yaAsignado is a custom function that
verifies if the username chosen is
On 6/9/07, Mickiii [EMAIL PROTECTED] wrote:
I have looked at
http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-per-field-in-cakephp-1-2
and it seems as if the above should work, but does'nt
Ensure that you have the latest checkout from the SVN - it did not
work for me