How do I add several validationrules per field? I have tried:

        var $validate = array(
                'glaccount_no' => array(
                        array(
                                'rule' => array('blank'),
                                'message' => 'test1'
                        ),
                        array(
                                'rule' => array('maxLength', 4),
                                'message' => 'test2'
                        )
    ),
                'account_type' => array(
                        array(
                                'rule' => array('blank'),
                                'message' => 'test1'
                        )
                ),
                'glaccount_description' => array(
                        array(
                                'rule' => array('blank'),
                                'message' => 'test1'
                        )
                )
        );

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

Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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