Skip to content

Commit 0630332

Browse files
committed
docs: add link to list of validation rules
1 parent 7938cf3 commit 0630332

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

user_guide_src/source/libraries/validation.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,8 @@ Or you can use the following parameters:
877877
.. literalinclude:: validation/047.php
878878
:lines: 2-
879879

880+
.. _validation-available-rules:
881+
880882
***************
881883
Available Rules
882884
***************

user_guide_src/source/models/model.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,12 @@ prior to saving to the database with the ``insert()``, ``update()``, or ``save()
676676
Setting Validation Rules
677677
------------------------
678678

679-
The first step is to fill out the `$validationRules`_ class property with the fields and rules that should
680-
be applied. If you have custom error message that you want to use, place them in the `$validationMessages`_ array:
679+
The first step is to fill out the `$validationRules`_ class property with the
680+
fields and rules that should be applied.
681+
682+
.. note:: You can see the list of built-in Validation rules in :ref:`validation-available-rules`.
683+
684+
If you have custom error message that you want to use, place them in the `$validationMessages`_ array:
681685

682686
.. literalinclude:: model/027.php
683687

0 commit comments

Comments
 (0)