CodeIgniter Forums
form_validation error location - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: form_validation error location (/showthread.php?tid=41694)



form_validation error location - El Forum - 05-14-2011

[eluser]regal2157[/eluser]
Hi,

I am going through the Form Validation page in the user_guide, and I see this remark:
Quote:All of the native error messages are located in the following language file: language/english/form_validation_lang.php

But the /language/english folder only has an index.php page. I know I could simply create this page, but is there another file location somewhere that stores the error messages?

I noticed a lot of the folders are empty as well, including
/application/core
/application/helpers
/application/hooks
/application/libraries
/application/third_party

Anyways, advice would be accepted Smile

I am using 2.x


form_validation error location - El Forum - 05-14-2011

[eluser]osci[/eluser]
these files are stored in system/language

but you can always
Code:
$this->form_validation->set_message('rule', 'Error Message');

as of Form Validation : CodeIgniter User Guide


form_validation error location - El Forum - 05-14-2011

[eluser]regal2157[/eluser]
Thanks osci! I knew something was wrong.. I was just in the wrong folder haha!

I know of the set_message rule, but I was lost when I couldn't find that file.