[eluser]Jonas G[/eluser]
Hi
I am currently setting some session data based on geoip data. In my master view template, the very first line is
Code:
$this->betscout->preflight()
preflight() checks to see whether or not sessions like "country" and "timezone" is already set, and if not, sets them.
What i'm looking for is a better place or better practice to do this. I have been trying to make a pre_controller hook for this, but since this cannot get an instance of ci it doesn't cut it for me.
What is the best practice/place to do this kinda thing?