Skip to content

Commit 9e90c2e

Browse files
committed
docs: add link to "Saving Sets of Validation Rules to the Config File"
1 parent 712dcb0 commit 9e90c2e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

user_guide_src/source/libraries/validation.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,8 @@ the validation rules.
476476
.. literalinclude:: validation/045.php
477477
:lines: 2-
478478

479+
.. _saving-validation-rules-to-config-file:
480+
479481
Saving Sets of Validation Rules to the Config File
480482
==================================================
481483

user_guide_src/source/models/model.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,10 @@ be applied. If you have custom error message that you want to use, place them in
679679

680680
.. literalinclude:: model/027.php
681681

682-
If you'd rather organize your rules and error messages within the Validation configuration file, you can do that
683-
and simply set `$validationRules`_ to the name of the validation rule group you created:
682+
If you'd rather organize your rules and error messages within the
683+
:ref:`Validation Config File <saving-validation-rules-to-config-file>`, you can
684+
do that and simply set `$validationRules`_ to the name of the validation rule
685+
group you created:
684686

685687
.. literalinclude:: model/034.php
686688

0 commit comments

Comments
 (0)