diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-01-13 19:16:35 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-01-13 19:16:35 +0100 |
commit | cde43687ef19aa23ee6796925270961b760369f3 (patch) | |
tree | 95bca7c0f6bfe6b61a1cef879ca1ddc992d9a1e8 /user_guide_src/source/libraries | |
parent | 81c87cd453c61a17e28aff2cc3f4ea76d4d19c59 (diff) |
Allow native PHP functions used as rules to accept an additional parameter
Diffstat (limited to 'user_guide_src/source/libraries')
-rw-r--r-- | user_guide_src/source/libraries/form_validation.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/user_guide_src/source/libraries/form_validation.rst b/user_guide_src/source/libraries/form_validation.rst index e7875bc22..999ab362c 100644 --- a/user_guide_src/source/libraries/form_validation.rst +++ b/user_guide_src/source/libraries/form_validation.rst @@ -321,7 +321,7 @@ password to MD5, and running the username through the "xss_clean" function, which removes malicious data. **Any native PHP function that accepts one parameter can be used as a -rule, like htmlspecialchars, trim, MD5, etc.** +rule, like htmlspecialchars, trim, md5, etc.** .. note:: You will generally want to use the prepping functions **after** the validation rules so if there is an error, the original @@ -857,8 +857,9 @@ Rule Parameter Description $this->form_validation->required($string); -.. note:: You can also use any native PHP functions that permit one - parameter. +.. note:: You can also use any native PHP functions that permit up + to two parameters, where at least one is required (to pass + the field data). ****************** Prepping Reference |