diff --git a/user_guide_src/source/installation/upgrade_4xx.rst b/user_guide_src/source/installation/upgrade_4xx.rst index a97a2e339a29..b0c3d3dea9be 100644 --- a/user_guide_src/source/installation/upgrade_4xx.rst +++ b/user_guide_src/source/installation/upgrade_4xx.rst @@ -55,6 +55,12 @@ Application Structure - There is no longer a nested **application/core** folder, as we have a different mechanism for extending framework components (see below). +Routing +======= + +- 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`. +- CI4 also has an optional new more secure :ref:`auto-routing-improved`. + Model, View and Controller ========================== diff --git a/user_guide_src/source/installation/upgrade_routing.rst b/user_guide_src/source/installation/upgrade_routing.rst index 882ef380ca92..669b00dc2751 100644 --- a/user_guide_src/source/installation/upgrade_routing.rst +++ b/user_guide_src/source/installation/upgrade_routing.rst @@ -13,11 +13,16 @@ Documentations What has been changed ===================== + +- In CI4 the Auto Routing is disabled by default. +- In CI4 the new more secure :ref:`auto-routing-improved` is introduced. - In CI4 the routing is no longer configured by setting the routes as array. Upgrade Guide ============= -1. You have to change the syntax of each routing line and append it in **app/Config/Routes.php**. For example: + +1. If you use the Auto Routing in the same way as CI3, you need to enable :ref:`auto-routing`. +2. You have to change the syntax of each routing line and append it in **app/Config/Routes.php**. For example: - ``$route['journals'] = 'blogs';`` to ``$routes->add('journals', 'Blogs::index');``. This would map to the ``index()`` method in the ``Blogs`` controller. - ``$route['product/(:any)'] = 'catalog/product_lookup';`` to ``$routes->add('product/(:any)', 'Catalog::productLookup');``