ahoy, i have the following validation in a model: var $validate = array( 'directory' => array('rule' => 'ValidFunc', 'message'=>'message') );
function ValidFunc($value) { $newvalue = 'new' .$value; $value = $newvalue; case 1: /*message=1*/ return false; case 2: /*message=2*/ return false; } there are 2 things i'm struggling to do: 1) change the validation message from the ValidFunc, 2) change $value for the form to $newvalue. anyone knows how i can do that? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---