Skip to content

Commit 7403a71

Browse files
committed
docs: move section
This section is to set rules, not to validate.
1 parent abada3c commit 7403a71

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

user_guide_src/source/libraries/validation.rst

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,23 @@ To give a labeled error message you can set up as:
298298

299299
.. _validation-withrequest:
300300

301+
Setting Rules for Array Data
302+
============================
303+
304+
If your data is in a nested associative array, you can use "dot array syntax" to
305+
easily validate your data:
306+
307+
.. literalinclude:: validation/009.php
308+
309+
You can use the ``*`` wildcard symbol to match any one level of the array:
310+
311+
.. literalinclude:: validation/010.php
312+
313+
"dot array syntax" can also be useful when you have single dimension array data.
314+
For example, data returned by multi select dropdown:
315+
316+
.. literalinclude:: validation/011.php
317+
301318
withRequest()
302319
=============
303320

@@ -321,23 +338,6 @@ data to be validated:
321338
Working with Validation
322339
***********************
323340

324-
Validating Keys that are Arrays
325-
===============================
326-
327-
If your data is in a nested associative array, you can use "dot array syntax" to
328-
easily validate your data:
329-
330-
.. literalinclude:: validation/009.php
331-
332-
You can use the '*' wildcard symbol to match any one level of the array:
333-
334-
.. literalinclude:: validation/010.php
335-
336-
"dot array syntax" can also be useful when you have single dimension array data.
337-
For example, data returned by multi select dropdown:
338-
339-
.. literalinclude:: validation/011.php
340-
341341
Validating 1 Value
342342
==================
343343

0 commit comments

Comments
 (0)