How to define a dynamic global variable in code-igniter framework.
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.
what is the best way to achieve this ?