Skip to content

Commit 947a104

Browse files
committed
docs: move paragraph to correct section
1 parent a8eec1e commit 947a104

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

user_guide_src/source/models/model.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,11 @@ be applied. If you have custom error message that you want to use, place them in
481481

482482
.. literalinclude:: model/027.php
483483

484+
If you'd rather organize your rules and error messages within the Validation configuration file, you can do that
485+
and simply set ``$validationRules`` to the name of the validation rule group you created:
486+
487+
.. literalinclude:: model/034.php
488+
484489
The other way to set the validation rules to fields by functions,
485490

486491
.. php:namespace:: CodeIgniter
@@ -549,11 +554,6 @@ errors at the top of the form, or to display them individually:
549554

550555
.. literalinclude:: model/033.php
551556

552-
If you'd rather organize your rules and error messages within the Validation configuration file, you can do that
553-
and simply set ``$validationRules`` to the name of the validation rule group you created:
554-
555-
.. literalinclude:: model/034.php
556-
557557
Retrieving Validation Rules
558558
---------------------------
559559

0 commit comments

Comments
 (0)