Global Logged User Info (Redux) - 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: Global Logged User Info (Redux) (/showthread.php?tid=15309) |
Global Logged User Info (Redux) - El Forum - 01-31-2009 [eluser]ChangedNames[/eluser] I'm working on a backend that utilizes Redux. Toda is my first day with it and so far it seems pretty spot-on to what I was looking for in an authentication library. I'm trying to find a way to make the logged username and group globally available. I want to be able to bring up the username on any page without having to define the variable in every controller. Is this possible within CI? Essentially I want to be able to put this (or something equivalent) anywhere in my views: Code: <?=$username;?> Global Logged User Info (Redux) - El Forum - 01-31-2009 [eluser]The Wizard[/eluser] make a model? wouldnt that help? |