We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dbdc1a commit fa1ae68Copy full SHA for fa1ae68
1 file changed
user_guide_src/source/installation/upgrade_configuration.rst
@@ -31,8 +31,7 @@ Upgrade Guide
31
from the CI3 config into the new CI4 config class as public class properties.
32
4. Now, you have to change the config fetching syntax everywhere you fetch config
33
values. The CI3 syntax is something like ``$this->config->item('item_name');``.
34
- You have to change this into ``config('MyConfigFile')->item_name;``. Alternatively,
35
- you can use the object-oriented approach: ``CodeIgniter\Config\Config::get('MyConfigFile')->item_name;``
+ You have to change this into ``config('MyConfigFile')->item_name;``.
36
37
Code Example
38
============
0 commit comments