Normally, I can use this , in the callback function:
$this->form_validation->set_message("_custom", "My custom message.");
But this will work only inside of the callback function which before was set like this:
$this->form_validation->set_rules('something', 'Something', 'trim|required|xss_clean|callback_custom');
My question is – How can I use $this->form_validation->set_message to work on a field name like its working on the callback function?
So I could use something like this: $this->form_validation->set_message('field_name', 'custom message'); without any callbacks.
Is that possible?
Found a nice way to do this: https://bitbucket.org/kuroir/codeigniter/changeset/fd8986fdc408