Skip to content

Commit b1bb1e9

Browse files
committed
docs: replace x with 'x'
It is a string.
1 parent 3c933d5 commit b1bb1e9

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

user_guide_src/source/installation/upgrade_4xx.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Libraries
102102
=========
103103

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

108108
Helpers
@@ -156,7 +156,7 @@ Upgrading Libraries
156156
*******************
157157

158158
- Your app classes can still go inside **app/Libraries**, but they don't have to.
159-
- Instead of CI3's ``$this->load->library(x);`` you can now use ``$this->x = new X();``,
159+
- Instead of CI3's ``$this->load->library('x');`` you can now use ``$this->x = new X();``,
160160
following namespaced conventions for your component.
161161
- Some libraries from CodeIgniter 3 no longer exists in Version 4. For all these
162162
libraries, you have to find a new way to implement your functions. These

user_guide_src/source/installation/upgrade_models.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Upgrade Guide
2424
2. Add this line just after the opening php tag: ``namespace App\Models;``.
2525
3. Below the ``namespace App\Models;`` line add this line: ``use CodeIgniter\Model;``.
2626
4. Replace ``extends CI_Model`` with ``extends Model``.
27-
5. Instead of CI3's ``$this->load->model(x);``, you would now use ``$this->x = new X();``, following namespaced conventions for your component. Alternatively, you can use the :php:func:`model()` function: ``$this->x = model('X');``.
27+
5. Instead of CI3's ``$this->load->model('x');``, you would now use ``$this->x = new X();``, following namespaced conventions for your component. Alternatively, you can use the :php:func:`model()` function: ``$this->x = model('X');``.
2828

2929
If you use sub-directories in your model structure you have to change the namespace according to that.
3030
Example: You have a version 3 model located in **application/models/users/user_contact.php** the namespace has to be ``namespace App\Models\Users;`` and the model path in the version 4 should look like this: **app/Models/Users/UserContact.php**

user_guide_src/source/installation/upgrade_views.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ What has been changed
1515
=====================
1616

1717
- Your views look much like before, but they are invoked differently ... instead of CI3's
18-
``$this->load->view(x);``, you can use ``return view(x);``.
18+
``$this->load->view('x');``, you can use ``return view('x');``.
1919
- CI4 supports *View Cells* to build your response in pieces, and *View Layouts* for page layout.
2020
- The template parser is still there, and substantially enhanced.
2121

0 commit comments

Comments
 (0)