Skip to content

Commit fe2fcea

Browse files
committed
docs: add what to do
1 parent 8733c64 commit fe2fcea

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

user_guide_src/source/installation/upgrade_validations.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ What has been changed
1515
=====================
1616
- If you want to change validation error display, you have to set CI4 :ref:`validation View templates <validation-customizing-error-display>`.
1717
- CI4 validation has no Callbacks nor Callable in CI3.
18+
Use :ref:`Rule Classes <validation-using-rule-classes>` or
19+
:ref:`Closure Rule <validation-using-closure-rule>`
20+
instead.
1821
- CI4 validation format rules do not permit empty string.
1922
- CI4 validation never changes your data.
2023
- Since v4.3.0, :php:func:`validation_errors()` has been introduced, but the API is different from CI3's.

user_guide_src/source/libraries/validation.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,8 @@ right after the name of the field the error should belong to::
612612
Creating Custom Rules
613613
*********************
614614

615+
.. _validation-using-rule-classes:
616+
615617
Using Rule Classes
616618
==================
617619

0 commit comments

Comments
 (0)