File tree Expand file tree Collapse file tree
user_guide_src/source/libraries Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -603,7 +603,7 @@ shown above. The primary benefit here is that it provides some extra navigation
603603Creating a Rule Class
604604---------------------
605605
606- Within the file itself, each method is a rule and must accept a string as the first parameter, and must return
606+ Within the file itself, each method is a rule and must accept a value to validate as the first parameter, and must return
607607a boolean true or false value signifying true if it passed the test or false if it did not:
608608
609609.. literalinclude :: validation/034.php
@@ -624,7 +624,7 @@ Your new custom rule could now be used just like any other rule:
624624Allowing Parameters
625625-------------------
626626
627- If your method needs to work with parameters, the function will need a minimum of three parameters: the string to validate,
627+ If your method needs to work with parameters, the function will need a minimum of three parameters: the value to validate,
628628the parameter string, and an array with all of the data that was submitted the form. The ``$data `` array is especially handy
629629for rules like ``required_with `` that needs to check the value of another submitted field to base its result on:
630630
You can’t perform that action at this time.
0 commit comments