CodeIgniter Forums

Full Version: How to get the instance of CI4?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
We can easily get the Instance in CI3 like below


PHP Code:
$CI = &get_instance(); 


How can I get it in CI4?
There is no more instance of CodeIgniter it is all OOP now.