Welcome Guest, Not a member yet? Register   Sign In
custom validation returns error always
#1

I have a custom validator that returns error always.

class myValidation extends CI_Form_validation {
/**
* myValidation::
*/

function fieldvalueisok($value){
//validates value against illegal entries such as "xxx"

$bannedValues=array('a','b','c');
if(in_array(strtolower($value),$bannedValues)){
return false;
}
return true;
}

}

Even if i return true everywhere, in a blank function etc, still i get an error from it. What am I missing? Please i wanna know more than the method above..the above is just an eg.
Reply


Messages In This Thread
custom validation returns error always - by sammyci - 12-13-2015, 12:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB