Hi all,

In my application, I have used the custom validation rule as:

'rule'=>array('checkRelatedItem','office_id','Office','Employee')

and I have defined the function checkRelatedItem in a behaviour:

function checkRelatedItem($data, $foreign_key=null,
$related_model=null, $model_name=null) {
echo $foreign_key;
echo $related_model;
echo $model_name;
}

But, the parameters of the function are not passing correctly.

Please help me to solve this problem...
--~--~---------~--~----~------------~-------~--~----~
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