CodeIgniter Forums
Global Variable - Printable Version

+- CodeIgniter Forums (
+-- Forum: General (
+--- Forum: Lounge (
+--- Thread: Global Variable (/thread-70217.html)

Global Variable - Prateek - 03-09-2018


     Is there any way to create global variable in CI which can be accessed from any of the Model or Controller .(Note Variable is not Static)

         Thank you.
         Prateek Sinha

RE: Global Variable - jreklund - 03-09-2018

You can set and get a Config file.

RE: Global Variable - emmawatson8855 - 04-03-2018

You can also find some informative information about global variable on StackOverflow