I am using <?php echo validation_errors(); ?> to display my CI errors and I am wondering if it is possible to include custom errors (like if the username/password is incorrect?).
I tried $this->form_validation->set_message("Password or Username was incorrect");
However it didn’t work. Any idea?
Thanks!
It’s possible with CALLBACK.
http://codeigniter.com/user_guide/libraries/form_validation.html#callbacks