Skip to content

Commit 848c598

Browse files
authored
Merge pull request #7412 from kenjis/docs-add-upgrade_4xx
docs: improve Upgrading from 3.x to 4.x
2 parents 748d603 + a19179a commit 848c598

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

user_guide_src/source/installation/upgrade_4xx.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ Application Structure
6262
Routing
6363
=======
6464

65-
- The Auto Routing is disabled by default. If you want to use the Auto Routing in the same way as CI3, you need to enable :ref:`auto-routing-legacy`.
65+
- The Auto Routing is disabled by default. You need to :ref:`define all routes
66+
<defined-route-routing>` by default.
67+
- If you want to use the Auto Routing in the same way as CI3, you need to enable
68+
:ref:`auto-routing-legacy`.
6669
- CI4 also has an optional new more secure :ref:`auto-routing-improved`.
6770

6871
Model, View and Controller
@@ -204,6 +207,3 @@ Upgrading Libraries
204207
upgrade_sessions
205208
upgrade_validations
206209
upgrade_view_parser
207-
208-
.. note::
209-
More upgrade guides coming soon

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)