From 5ea646a9a1012168fde1a6a2b970d4168e2c11fc Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Sun, 26 Jul 2015 23:07:27 +0300 Subject: [ci skip] Add a note about CI_Form_validation::set_data() --- user_guide_src/source/libraries/form_validation.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'user_guide_src/source') diff --git a/user_guide_src/source/libraries/form_validation.rst b/user_guide_src/source/libraries/form_validation.rst index fa50c6dcf..be6d1f233 100644 --- a/user_guide_src/source/libraries/form_validation.rst +++ b/user_guide_src/source/libraries/form_validation.rst @@ -689,8 +689,12 @@ In this case, you can specify the array to be validated:: $this->form_validation->set_data($data); -Creating validation rules, running the validation, and retrieving error messages works the -same whether you are validating ``$_POST`` data or an array. +Creating validation rules, running the validation, and retrieving error +messages works the same whether you are validating ``$_POST`` data or +another array of your choice. + +.. important:: You have to call the ``set_data()`` method *before* defining + any validation rules. .. important:: If you want to validate more than one array during a single execution, then you should call the ``reset_validation()`` method -- cgit v1.2.3-24-g4f1b