summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries
diff options
context:
space:
mode:
authorAhmedul Haque Abid <a_h_abid@hotmail.com>2014-01-09 02:51:10 +0100
committerAhmedul Haque Abid <a_h_abid@hotmail.com>2014-01-09 02:51:10 +0100
commit0742fad5cb283693bf1ef0a63aa90bb6cb2927d8 (patch)
treea26c8095d6fdc8cc69ba2b29a6bd9056ffc8c5fb /user_guide_src/source/libraries
parent42b40006fe8b740b416a8e8fd9acb0666349e222 (diff)
Changed $error_msg to $errors
Diffstat (limited to 'user_guide_src/source/libraries')
-rw-r--r--user_guide_src/source/libraries/form_validation.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide_src/source/libraries/form_validation.rst b/user_guide_src/source/libraries/form_validation.rst
index f70877c02..671f97992 100644
--- a/user_guide_src/source/libraries/form_validation.rst
+++ b/user_guide_src/source/libraries/form_validation.rst
@@ -957,12 +957,12 @@ The following methods are intended for use in your controller.
$this->form_validation->set_rules()
===================================
- .. php:method:: set_rules ($field, $label = '', $rules = '')
+ .. php:method:: set_rules ($field, $label = '', $rules = '', $errors = array())
:param string $field: The field name
:param string $label: The field label
:param mixed $rules: The rules, as a string with rules separated by a pipe "|", or an array or rules.
- :param array $error_msg: Custom error message on any rules for the current field only. (optional)
+ :param array $errors: Custom error message
:rtype: Object
Permits you to set validation rules, as described in the tutorial