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
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,18 +19,18 @@ What has been changed
19
19
20
20
Upgrade Guide
21
21
=============
22
-
1. You have to change the syntax of each routing line and append it in ``app/Config/Routes.php``. For example:
22
+
1. You have to change the syntax of each routing line and append it in **app/Config/Routes.php**. For example:
23
23
24
-
- ``$route['journals'] = 'blogs';`` to ``$routes->add('journals', 'App\Blogs');`` this would map to the ``index()`` method in the "Blogs" class.
25
-
- ``$route['product/(:any)'] = 'catalog/product_lookup';`` to ``$routes->add('product/(:any)', 'Catalog::productLookup');``
26
-
- ``$route['login/(.+)'] = 'auth/login/$1';`` to ``$routes->add('login/(.+)', 'Auth::login/$1');``
24
+
- ``$route['journals'] = 'blogs';`` to ``$routes->add('journals', 'Blogs::index');``. This would map to the ``index()`` method in the ``Blogs`` controller.
25
+
- ``$route['product/(:any)'] = 'catalog/product_lookup';`` to ``$routes->add('product/(:any)', 'Catalog::productLookup');``
26
+
- ``$route['login/(.+)'] = 'auth/login/$1';`` to ``$routes->add('login/(.+)', 'Auth::login/$1');``
27
27
28
28
Code Example
29
29
============
30
30
31
31
CodeIgniter Version 3.11
32
32
------------------------
33
-
Path: ``application/config/routes.php``::
33
+
Path: **application/config/routes.php**::
34
34
35
35
<?php
36
36
defined('BASEPATH') OR exit('No direct script access allowed');
0 commit comments