How do I create a custom validator for the validator class?
$this->validator->add_rule('field', 'func', 'msg', 'params')
I can insert my own function within the validator helper but I don't want to put it in there if I'm only going to use it once. Help?
Comments
http://php.net/manual/en/function.create-function.php