CodeIgniter Forums Archived Discussions Archived General Discussion Validation Custom Error Message Clarification Validation Custom Error Message ClarificationEl ForumUnregistered #1 10-15-2008, 06:39 PM [eluser]escape[/eluser] I've got form validation working with the following abbreviated code from my ...
I have defined the error messages inside the $validationMessage array of my model class 'Post' and it seems that the default ones are appearing.I have even written stupid code like this to get it to work and they still don't PHP Code:...
This extension to the core Validation class provides a method for setting custom error messages per field. CodeIgniter's default behaviour is to set errors based on the validation rule that failed to be satisfied. These can be customized, but not per field. Note that errors configured with this...
// login failed display error message to user via validation function // $this->validation->set_message('invalidLogin', 'Login Error Msg.'); // display current view with login error messages } } If the user passes the validation rules but fails to login correctly I wish to set a custo...