title: How to define a dynamic global variable in code-igniter framework.
body: <p>How to define a dynamic global variable in code-igniter framework. </p>
  
  <p>I am using Geo-Location tracking api, which tracks the country of the user based on user's IP address. 
  I need to set the value of this global variable dynamically depending on the country code returned from the API.</p>
  
  <p>what is the best way to achieve this ?</p>