Skip to content

Commit b2d317d

Browse files
committed
docs: add section titles
1 parent fbf4815 commit b2d317d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

user_guide_src/source/libraries/validation.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,16 @@ rules. As shown earlier, the validation array will have this prototype:
370370

371371
.. literalinclude:: validation/013.php
372372

373+
How to Specify Rule Group
374+
-------------------------
375+
373376
You can specify the group to use when you call the ``run()`` method:
374377

375378
.. literalinclude:: validation/014.php
376379

380+
How to Save Error Messages
381+
--------------------------
382+
377383
You can also store custom error messages in this configuration file by naming the
378384
property the same as the group, and appended with ``_errors``. These will automatically
379385
be used for any errors when this group is used:

0 commit comments

Comments
 (0)