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
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,11 @@ Upgrade Guide
22
22
=============
23
23
24
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:
25
+
2. The placeholder ``(:any)`` in CI3 will be ``(:segment)`` in CI4.
26
+
3. You have to change the syntax of each routing line and append it in **app/Config/Routes.php**. For example:
26
27
27
28
- ``$route['journals'] = 'blogs';`` to ``$routes->add('journals', 'Blogs::index');``. This would map to the ``index()`` method in the ``Blogs`` controller.
28
-
- ``$route['product/(:any)'] = 'catalog/product_lookup';`` to ``$routes->add('product/(:any)', 'Catalog::productLookup');``
29
+
- ``$route['product/(:any)'] = 'catalog/product_lookup';`` to ``$routes->add('product/(:segment)', 'Catalog::productLookup');``
29
30
- ``$route['login/(.+)'] = 'auth/login/$1';`` to ``$routes->add('login/(.+)', 'Auth::login/$1');``
0 commit comments