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 @@ -690,8 +690,13 @@ Your new custom rule could now be used just like any other rule:
690690Allowing Parameters
691691-------------------
692692
693- If your method needs to work with parameters, the function will need a minimum of three parameters: the value to validate,
694- the parameter string, and an array with all of the data that was submitted the form. The ``$data `` array is especially handy
693+ If your method needs to work with parameters, the function will need a minimum of three parameters:
694+
695+ 1. the value to validate (``$value ``)
696+ 2. the parameter string (``$params ``)
697+ 3. an array with all of the data that was submitted the form (``$data ``)
698+
699+ The ``$data `` array is especially handy
695700for rules like ``required_with `` that needs to check the value of another submitted field to base its result on:
696701
697702.. literalinclude :: validation/037.php
You can’t perform that action at this time.
0 commit comments