CodeIgniter Forums
About get_instance() - Printable Version

+- CodeIgniter Forums (
+-- Forum: CodeIgniter 4 (
+--- Forum: CodeIgniter 4 Discussion (
+--- Thread: About get_instance() (/showthread.php?tid=80645)

About get_instance() - hermes.tas - 11-25-2021

Hello world!
I am currently using Codeigniter 4. But I find out that "get_instance()" method has been removed.
So my question is:
- why is "get_instance()" not present in Codeigniter 4 ?
- what is the purpose of removing the "get_instance()", is there any advantages by removing it ?

RE: About get_instance() - kenjis - 11-26-2021

It is because the architecture was changed.
There is no longer a CodeIgniter “superobject”, with framework component references magically injected as properties of your controller.