Skip to content

Commit c28b5d1

Browse files
committed
docs: decorate file paths with **
1 parent 59d1b74 commit c28b5d1

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

user_guide_src/source/installation/upgrade_4xx.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,26 @@ General Adjustments
3939

4040
**Application Structure**
4141

42-
- The ``application`` folder is renamed as ``app`` and the framework still has ``system`` folders,
42+
- The **application** folder is renamed as **app** and the framework still has **system** folders,
4343
with the same interpretation as before.
44-
- The framework now provides for a ``public`` folder, intended as the document root for your app.
45-
- There is also a ``writable`` folder, to hold cache data, logs, and session data.
46-
- The ``app`` folder looks very similar to ``application`` for CI3, with some
47-
name changes, and some subfolders moved to the ``writable`` folder.
48-
- There is no longer a nested ``application/core`` folder, as we have
44+
- The framework now provides for a **public** folder, intended as the document root for your app.
45+
- There is also a **writable** folder, to hold cache data, logs, and session data.
46+
- The **app** folder looks very similar to **application** for CI3, with some
47+
name changes, and some subfolders moved to the **writable** folder.
48+
- There is no longer a nested **application/core** folder, as we have
4949
a different mechanism for extending framework components (see below).
5050

5151
**Model, View and Controller**
5252

5353
- CodeIgniter is based on the MVC concept. Thus, the changes on the Model, View and Controller
5454
are one of the most important things you have to handle.
55-
- In CodeIgniter 4, models are now located in ``app/Models`` and you have to add the lines
55+
- In CodeIgniter 4, models are now located in **app/Models** and you have to add the lines
5656
``namespace App\Models;`` along with ``use CodeIgniter\Model;`` right after the opening php tag.
5757
The last step is to replace ``extends CI_Model`` with ``extends Model``.
58-
- The views of CodeIgniter 4 have been moved ``to app/Views``. Furthermore, you have to change
58+
- The views of CodeIgniter 4 have been moved to **app/Views**. Furthermore, you have to change
5959
the syntax of loading views from ``$this->load->view('directory_name/file_name')`` to
6060
``echo view('directory_name/file_name');``.
61-
- Controllers of CodeIgniter 4 have to be moved to ``app/Controllers;``. After that,
61+
- Controllers of CodeIgniter 4 have to be moved to **app/Controllers**. After that,
6262
add ``namespace App\Controllers;`` after the opening php tag.
6363
Lastly, replace ``extends CI_Controller`` with ``extends BaseController``.
6464
- For more information we recommend you the following upgrade guides, which will give
@@ -85,7 +85,7 @@ General Adjustments
8585

8686
**Libraries**
8787

88-
- Your app classes can still go inside ``app/Libraries``, but they don't have to.
88+
- Your app classes can still go inside **app/Libraries**, but they don't have to.
8989
- Instead of CI3's ``$this->load->library(x);`` you can now use
9090
``$this->x = new X();``, following namespaced conventions for your component.
9191

@@ -105,18 +105,18 @@ General Adjustments
105105

106106
**Extending the framework**
107107

108-
- You don't need a ``core`` folder to hold ``MY_...`` framework
108+
- You don't need a **core** folder to hold ``MY_...`` framework
109109
component extensions or replacements.
110110
- You don't need ``MY_x`` classes inside your libraries folder
111111
to extend or replace CI4 pieces.
112112
- Make any such classes where you like, and add appropriate
113-
service methods in ``app/Config/Services.php`` to load
113+
service methods in **app/Config/Services.php** to load
114114
your components instead of the default ones.
115115

116116
Upgrading Libraries
117117
===================
118118

119-
- Your app classes can still go inside ``app/Libraries``, but they don’t have to.
119+
- Your app classes can still go inside **app/Libraries**, but they don’t have to.
120120
- Instead of CI3’s ``$this->load->library(x);`` you can now use ``$this->x = new X();``,
121121
following namespaced conventions for your component.
122122
- Some libraries from CodeIgniter 3 no longer exists in Version 4. For all these

0 commit comments

Comments
 (0)