[eluser]CodeIgniterNewbie[/eluser]
I've created application/helpers/form_validation_helper.php and have autoloaded form_validation in the helpers section application/config/autoload.php. Say I have a function in form_validation_helper.php called foo.
In one of my controllers, I am trying to do something like this:
Code:
$this->form_validation->set_rules('username', 'User Name', 'required|callback_foo');
When I run the validation, CI seems to be unaware of foo. It'll handle native CI validation rules (such as required), but ignore my callbacks. If I copy foo and put it in the same controller as what's calling foo, everything works well.
Any idea what I am doing wrong?