[eluser]TheFuzzy0ne[/eluser]
A method I like to use, is to create the callback in a model or helper, and simply add an alias in the controller:
Code:
#Controller
function my_validation_callback($str="")
{
return $this->some_model->my_validation_callback($str);
}
The trouble is that when you use helpers, you have to mess around with scope to access CodeIgniter from the outside. It's much easier to make it work if you're callback is within a model or your controller.