Skip to content

Commit 3cb4e17

Browse files
committed
Improve the upgrading guide
1 parent 1caf1cc commit 3cb4e17

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

user_guide_src/source/installation/upgrade_4xx.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ interpretation as before
3535
root for your app
3636
- There is also a `writable` folder, to hold cache data, logs, and session data
3737
- The `application` folder looks very similar to that for CI3, with some
38-
name changes (eg Filters instead of hooks) and capitalization, and some subfolders
38+
name changes, and some subfolders
3939
moved to the `writable` folder
4040
- There is no longer a nested `application/core` folder, as we have
4141
a different mechanism for extending framework components (see below)
@@ -55,8 +55,8 @@ you are most comfortable with, including the "HMVC" style
5555

5656
**Controllers**
5757
- Controllers extend \CodeIgniter\Controller instead of CI_Controller
58-
- They don't use a constructor any more (to invoke CI "magic"); they
59-
instead call `initController`
58+
- They don't use a constructor any more (to invoke CI "magic") unless
59+
that is part of a bvase controller you make
6060
- CI provides `Request` and `Response` objects for you to work with -
6161
more powerful than the CI3-way
6262
- If you want a base controller (MY_Controller in CI3), make it
@@ -76,7 +76,7 @@ of your component
7676

7777
**Views**
7878
- Your views look much like before, but they are invoked differently ...
79-
instead of CI3's `$this->load->view(x);` you can use `view(x);`
79+
instead of CI3's `$this->load->view(x);` you can use `echo view(x);`
8080
- CI4 supports view "cells", to build your response in pieces
8181
- The template parser is still there, but substantially
8282
enhanced
@@ -89,8 +89,7 @@ don't have to
8989
component
9090

9191
**Helpers**
92-
- Helpers are pretty much the same as before, except that instead
93-
of `$this->load->helper(x);` you would now use `helper(x);`
92+
- Helpers are pretty much the same as before, though some have been simplified
9493

9594
**Extending the framework**
9695
- You don't need a `core` folder to hold `MY_...` framework

0 commit comments

Comments
 (0)