CodeIgniter Forums
CodeIgniter Forums
>
CodeIgniter 4
>
CodeIgniter 4 Discussion
> How to get the instance of CI4?
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.
takielias
12-16-2019, 06:28 AM
We can easily get the
Instance
in CI3 like below
PHP Code:
$CI
= &
get_instance
();
How can I get it in CI4?
InsiteFX
12-16-2019, 09:29 AM
There is no more instance of CodeIgniter it is all OOP now.
CodeIgniter Forums
>
CodeIgniter 4
>
CodeIgniter 4 Discussion
> How to get the instance of CI4?