Hi, I am trying to validate my model, I am using CakePHP 1.2.3.8166 and mysql 5
I have my model definied as it:
class Actividad extends AppModel {
var $name = 'Actividad';
var $validate= array('maxfield' => array(
'rule'=> array('chkValue'),
'message'=>'i2'
));
function chkValue($data){
return $data["maxfield"]>=$data["minfield"]
}
}
My table have 2 fields, maxfield and minfield, I need to validate maxfield always >= minfield but I can't figure out how to check minfield value! can someone help me please!
sorry my bad english, I speak spanish :)
Best regards