hi, please i am trying to set a rule for if is_numeric, this was the way i did it.
'Price' => array(
'required' => true,
'is_numeric' => true
)
and in the validation script
case 'is_numeric':
if($value != $rule_value) {
$this->addError("{$item} must be a numeric value.");
}
and i tried
case 'is_numeric':
if($value != $source[$rule_value]) {
$this->addError("{$item} must be a numeric value.");
}
but its accepting any value as is_numeric and the error keeps coming up