• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.