![]() |
About get_instance() - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- 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 ? Thanks 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. |