CodeIgniter Forums
How to get the instance of CI4? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forum-31.html)
+--- Thread: How to get the instance of CI4? (/thread-75067.html)



How to get the instance of CI4? - takielias - 12-16-2019

We can easily get the Instance in CI3 like below


PHP Code:
$CI = &get_instance(); 


How can I get it in CI4?


RE: How to get the instance of CI4? - InsiteFX - 12-16-2019

There is no more instance of CodeIgniter it is all OOP now.