Welcome Guest, Not a member yet? Register   Sign In
About get_instance()
#1

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
Reply
#2

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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB