How to define a dynamic global variable in code-igniter framework.

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 ?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s