![]() |
single error message for all the validations? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12) +--- Thread: single error message for all the validations? (/showthread.php?tid=64052) |
single error message for all the validations? - rakibtg - 01-07-2016 Hi, take a look at the code: PHP Code: [ as you can already guess that i am trying to hide the default error messages and override each of them with a custom string, is there any way to do it once? Like this: PHP Code: [ RE: single error message for all the validations? - Diederik - 01-07-2016 You could use the error_array() function for this purpose. PHP Code: $error_array = $this->form_validation->error_array(); |