All of the native error messages are located in the following language file: system/language/english/form_validation_lang.php
To set your own global custom message for a rule, you can either extend/override the language file by creating your own inapplication/language/english/form_validation_lang.php (read more about this in the Language Class documentation), or use the following method:
$this->form_validation->set_message('rule', 'Error Message');
If you need to set a custom error message for a particular field on some particular rule, use the set_rules() method:
$this->form_validation->set_rules('field_name', 'Field Label', 'rule1|rule2|rule3', array('rule2' => 'Error Message on rule2 for this field_name') );
Where rule corresponds to the name of a particular rule, and Error Message is the text you would like displayed.
If you’d like to include a field’s “human” name, or the optional parameter some rules allow for (such as max_length), you can add the {field} and {param} tags to your message, respectively:
$this->form_validation->set_message('min_length', '{field} must have at least {param} characters.');
Contact Controller [crayon-67b061cece96e679320363/] Contact_form.php - view [crayon-67b061cece97e804885545/] Contact_model [crayon-67b061cece987685788896/] Captcha Helper [crayon-67b061cece992291905388/] Notifications_model [crayon-67b061cece99f652598076/] Database…
[crayon-67b061cecef34170848330/] [crayon-67b061cecef3c985702543/]
[crayon-67b061cecf116782112545/] The first parameter specifies the type of string, the second parameter specifies the length.…
Create Controller [crayon-67b061cecf29c222922677/] 2. Create View File [crayon-67b061cecf2a3570003383/]
[crayon-67b061cecf400056754822/] [crayon-67b061cecf406343534336/]
Database:- [crayon-67b061cecf547213335202/] application/model/Pagination_model.php [crayon-67b061cecf54e581634698/] application/controllers/Pagination.php [crayon-67b061cecf551568514357/] application/views/pagination.php [crayon-67b061cecf555911647997/]