summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-07-26 22:07:27 +0200
committerAndrey Andreev <narf@devilix.net>2015-07-26 22:07:27 +0200
commit5ea646a9a1012168fde1a6a2b970d4168e2c11fc (patch)
tree43ff3106a207962d0ec6bf51e264da74e3348f03
parentbeb0c324b22e6667d444532abfe645884d2cab8b (diff)
[ci skip] Add a note about CI_Form_validation::set_data()
-rw-r--r--user_guide_src/source/libraries/form_validation.rst8
1 files changed, 6 insertions, 2 deletions
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