summaryrefslogtreecommitdiffstats
path: root/user_guide_src
diff options
context:
space:
mode:
authorRecoilUK <steve@loussot.plus.com>2012-08-23 20:43:48 +0200
committerRecoilUK <steve@loussot.plus.com>2012-08-23 20:43:48 +0200
commit19ac8bc3fc55460660cca618b6cce0ef212e7bdc (patch)
tree7cc7a541cb50ff50f65365e3bcb712958caaea54 /user_guide_src
parent2d5c209943ef1e2644504e8d5cb32d3d66b45632 (diff)
Update user_guide_src/source/libraries/form_validation.rst
Diffstat (limited to 'user_guide_src')
-rw-r--r--user_guide_src/source/libraries/form_validation.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/user_guide_src/source/libraries/form_validation.rst b/user_guide_src/source/libraries/form_validation.rst
index 3bcad7ba6..bc25d8292 100644
--- a/user_guide_src/source/libraries/form_validation.rst
+++ b/user_guide_src/source/libraries/form_validation.rst
@@ -488,6 +488,15 @@ the name of the function::
$this->form_validation->set_message('username_check')
+If you are using an error message that can accept two $s in your error string,
+such as ..
+
+ $this->form_validation->set_message('min_length', 'The $s field must contain at least $s characters.');
+
+Then you can also use %1$s and %2$s:
+
+ $this->form_validation->set_message('min_length', 'This field must contain at least %2$s characters.');
+
You can also override any error message found in the language file. For
example, to change the message for the "required" rule you will do this::