Welcome Guest, Not a member yet? Register   Sign In
Getting value from hook to controller.
#5

[eluser]drewbee[/eluser]
uri_protocol is set to AUTO.

For the 3rd option, I tried storing the value by global $var, as well as $_GLOBAL['var'], however the values were not accessible (does CI trash these as well as GET?)

Above anything else, the easiest method way would be to just set the silly cookie within the pre_system hook. This would be the minimum amount of work (and the cleanest IMO).

Also, at the time of the pre_system, I did i dump of $this and had only the hooks class and one other irrelevant class available to me. Everything is pretty much non-existant during the pre-system load.


Messages In This Thread
Getting value from hook to controller. - by El Forum - 09-16-2008, 09:35 AM
Getting value from hook to controller. - by El Forum - 09-16-2008, 09:43 AM
Getting value from hook to controller. - by El Forum - 09-16-2008, 09:47 AM
Getting value from hook to controller. - by El Forum - 09-16-2008, 02:41 PM
Getting value from hook to controller. - by El Forum - 09-16-2008, 02:52 PM
Getting value from hook to controller. - by El Forum - 09-16-2008, 02:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB