You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/installation/upgrade_routing.rst
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,16 @@ Documentations
13
13
14
14
What has been changed
15
15
=====================
16
+
17
+
- In CI4 the Auto Routing is disabled by default.
18
+
- In CI4 the new more secure :ref:`auto-routing-improved` is introduced.
16
19
- In CI4 the routing is no longer configured by setting the routes as array.
17
20
18
21
Upgrade Guide
19
22
=============
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:
21
26
22
27
- ``$route['journals'] = 'blogs';`` to ``$routes->add('journals', 'Blogs::index');``. This would map to the ``index()`` method in the ``Blogs`` controller.
23
28
- ``$route['product/(:any)'] = 'catalog/product_lookup';`` to ``$routes->add('product/(:any)', 'Catalog::productLookup');``
0 commit comments