Welcome Guest, Not a member yet? Register   Sign In
Global Variable
#1

Hi,

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

You can set and get a Config file.
https://www.codeigniter.com/user_guide/l...onfig.html
Reply
#3

You can also find some informative information about global variable on StackOverflow https://stackoverflow.com/questions/1701...le_rich_qa
Reply




Theme © iAndrew 2016 - Forum software by © MyBB