Skip to content

Commit b329d9c

Browse files
authored
Merge pull request #6074 from kenjis/fix-docs-upgrading-routing
docs: update "Upgrading from 3.x to 4.x" Routing for v4.2
2 parents cf4641c + 148ee02 commit b329d9c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

user_guide_src/source/installation/upgrade_4xx.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ Application Structure
5555
- There is no longer a nested **application/core** folder, as we have
5656
a different mechanism for extending framework components (see below).
5757

58+
Routing
59+
=======
60+
61+
- 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`.
62+
- CI4 also has an optional new more secure :ref:`auto-routing-improved`.
63+
5864
Model, View and Controller
5965
==========================
6066

user_guide_src/source/installation/upgrade_routing.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ Documentations
1313

1414
What has been changed
1515
=====================
16+
17+
- In CI4 the Auto Routing is disabled by default.
18+
- In CI4 the new more secure :ref:`auto-routing-improved` is introduced.
1619
- In CI4 the routing is no longer configured by setting the routes as array.
1720

1821
Upgrade Guide
1922
=============
20-
1. You have to change the syntax of each routing line and append it in **app/Config/Routes.php**. For example:
23+
24+
1. If you use the Auto Routing in the same way as CI3, you need to enable :ref:`auto-routing`.
25+
2. You have to change the syntax of each routing line and append it in **app/Config/Routes.php**. For example:
2126

2227
- ``$route['journals'] = 'blogs';`` to ``$routes->add('journals', 'Blogs::index');``. This would map to the ``index()`` method in the ``Blogs`` controller.
2328
- ``$route['product/(:any)'] = 'catalog/product_lookup';`` to ``$routes->add('product/(:any)', 'Catalog::productLookup');``

0 commit comments

Comments
 (0)