CodeIgniter Forums
Global Variables in Models???? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Global Variables in Models???? (/showthread.php?tid=44903)



Global Variables in Models???? - El Forum - 08-30-2011

[eluser]Freewolf[/eluser]
Hey All,

I want to set a series of variables in a model, and then have them be available in the controller. Is there a way to do that?

I set the variables in the model global before setting them, but they are still not appearing the controller.

It will just keep the controller much cleaner to do it this route if possible.