codeigniter-message
codeigniter-message copied to clipboard
Form validation errors to messages
When you call $this->message->display() after a failed form validation, a general error message could be set, followed by the specific errors for each field. This would mean you would only have to call $this->message->display() in your views/template, which handles both the messages set by $this->messages->set() as well as form validation messages and don't need to call validation_errors() anymore.