Issue - Form_Validation > Setting Error Messages > set_rule() |
Hi Guys,
Could someone please give a Light what's going wrong here please? I try to set a custom error message for a particular field on some particular rule, but when i call the rule, i still see the native error messages from the file system/language/english/form_validation_lang.php. I've checked other Posts from another users, but i didn't find the correct answer for that. I try to do exactly what the documentation says, but till now it doesn't work. Documentation: https://www.codeigniter.com/userguide3/l...r-messages "If you need to set a custom error message for a particular field on some particular rule, use the set_rules() method:" Code: $this->form_validation->set_rules('field_name', 'Field Label', 'rule1|rule2|rule3', array('rule2' => 'Error Message on rule2 for this field_name')); This is my Post Method. Code: // CREATE NEW POST FORM And this is my view Form file Code: <!-- FORMNAME --> I thank you in Advance for any Help or Light. |
Messages In This Thread |
Issue - Form_Validation > Setting Error Messages > set_rule() - by Porto - 02-19-2019, 09:14 AM
RE: Issue - Form_Validation > Setting Error Messages > set_rule() - by xenomorph1030 - 02-20-2019, 10:39 AM
RE: Issue - Form_Validation > Setting Error Messages > set_rule() - by Porto - 02-25-2019, 05:49 AM
RE: Issue - Form_Validation > Setting Error Messages > set_rule() - by PaulD - 02-20-2019, 03:28 PM
Issue SOLVED 25.02.2019 - Form_Validation > Setting Error Messages > set_rule() - by Porto - 02-25-2019, 06:29 AM
|