hello.

i can't figure out how to code this rule.

i have a simple "users" table with some fields.

i need at least one field ("Name" or "Surname")  != blank

Here's my Validate() array

$this->User->validate = array(
        "Name" => array(
                "atLeastOneField" => array(
                        "rule" => array("atLeastOneField",  array("Name",  
"Surname"))
                )
        ),
        "Surname" => array(
                "atLeastOneField" => array(
                        "rule" => array("atLeastOneField",  array("Name",  
"Surname"))
                )
        ),
);
--~--~---------~--~----~------------~-------~--~----~
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