Browse files

Merge pull request #1738 from RecoilUK/patch-1

Update user_guide_src/source/libraries/form_validation.rst
  • Loading branch information...
2 parents ccd01c7 + 19ac8bc commit 6998492ec75c6fca95fd3656284d949a01a4420f @narfbg narfbg committed Oct 5, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 user_guide_src/source/libraries/form_validation.rst
@@ -488,6 +488,15 @@ the name of the function::
+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::

0 comments on commit 6998492

Please sign in to comment.