[eluser]drewbee[/eluser]
Hello everyone I am setting up a referral system on my current project, and as such have a requirement that the referring query string can be added to any url.
This is no problem through the pre_system hook. The query string is succesfully recongnized and avoids 'crashing' (404 displaying). Unfortunately during the pre_system, I have NOTHING available to me at this point. In trying to stay consistent with using all of code igniters features, I want to use the cookie helpers later on during the controller calls.
Unfortunately, I have no way of moving said cookie value from the controller (Through global vars or even the hook class itself, as it seems to be unitialized by the time it gets to the controller);
Does anyone have any advice on this one? In its most basic form, my question I am asking is how to I get a value from a hook class to a controller?
Or is this one of those times that I should just deal with the cookie handling within the hook manually? (I can do that, I just wanted to stay true to CI)