From 0630332b61c8581bbc7edf135e58bcd47918675f Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 2 Aug 2024 09:35:11 +0900 Subject: [PATCH] docs: add link to list of validation rules --- user_guide_src/source/libraries/validation.rst | 2 ++ user_guide_src/source/models/model.rst | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/user_guide_src/source/libraries/validation.rst b/user_guide_src/source/libraries/validation.rst index 71d82deff694..048449580422 100644 --- a/user_guide_src/source/libraries/validation.rst +++ b/user_guide_src/source/libraries/validation.rst @@ -877,6 +877,8 @@ Or you can use the following parameters: .. literalinclude:: validation/047.php :lines: 2- +.. _validation-available-rules: + *************** Available Rules *************** diff --git a/user_guide_src/source/models/model.rst b/user_guide_src/source/models/model.rst index 1c99b06dc843..e8186487f9e6 100644 --- a/user_guide_src/source/models/model.rst +++ b/user_guide_src/source/models/model.rst @@ -676,8 +676,12 @@ prior to saving to the database with the ``insert()``, ``update()``, or ``save() Setting Validation Rules ------------------------ -The first step is to fill out the `$validationRules`_ class property with the fields and rules that should -be applied. If you have custom error message that you want to use, place them in the `$validationMessages`_ array: +The first step is to fill out the `$validationRules`_ class property with the +fields and rules that should be applied. + +.. note:: You can see the list of built-in Validation rules in :ref:`validation-available-rules`. + +If you have custom error message that you want to use, place them in the `$validationMessages`_ array: .. literalinclude:: model/027.php