CodeIgniter Forums
Accessing Global Variables in a helper - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Accessing Global Variables in a helper (/showthread.php?tid=37793)



Accessing Global Variables in a helper - El Forum - 01-20-2011

[eluser]Freewolf[/eluser]
Hey I tried using $_SERVER['HTTP_REFERER'] in a helper and got an error saying that http_referer was not a valid index. Is there a special way that $_SERVER variables need to be accessed in a helper?


Accessing Global Variables in a helper - El Forum - 01-20-2011

[eluser]KarlBallard[/eluser]
Why not just user the user_agent library?


Accessing Global Variables in a helper - El Forum - 02-25-2011

[eluser]Unknown[/eluser]
So.... how would one access global variables in a helper?