diff options
author | zoaked <zoaked@users.noreply.github.com> | 2015-09-22 05:02:30 +0200 |
---|---|---|
committer | zoaked <zoaked@users.noreply.github.com> | 2015-09-22 05:02:30 +0200 |
commit | 505e15d01bb4b1b222d9685062d5c294c1ad38c0 (patch) | |
tree | 52034038f51e43de4ead40124236620c5588fa6d /user_guide_src/source/libraries | |
parent | 2811b5554e9a348a35873bf3b867d8e2773d2728 (diff) |
Added optional parameter to reset_validation()
Diffstat (limited to 'user_guide_src/source/libraries')
-rw-r--r-- | user_guide_src/source/libraries/form_validation.rst | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/user_guide_src/source/libraries/form_validation.rst b/user_guide_src/source/libraries/form_validation.rst index 858ff1ac0..15d9b1cb7 100644 --- a/user_guide_src/source/libraries/form_validation.rst +++ b/user_guide_src/source/libraries/form_validation.rst @@ -714,8 +714,6 @@ file. You can organize these rules into "groups". These groups can either be loaded automatically when a matching controller/method is called, or you can manually call each set as needed. -.. important:: Make sure that when using the ``reset_validation()`` method you pass ``true`` as a parameter. If you do not then all the validation rules loaded from the config file will be cleared as well! - How to save your rules ====================== @@ -1078,9 +1076,9 @@ Class Reference Permits you to set an array for validation, instead of using the default ``$_POST`` array. - .. php:method:: reset_validation($keep_config=false) + .. php:method:: reset_validation($keep_config = FALSE) - :param bool $keep_config: Will leave configured validation rules alone when true or clear them when false. This parameter must be true if your rules are being loaded from a config file + :param bool $keep_config: Whether to reset validation rules from config files :returns: CI_Form_validation instance (method chaining) :rtype: CI_Form_validation |