General variable from custom librarie - 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: General variable from custom librarie (/showthread.php?tid=13807) |
General variable from custom librarie - El Forum - 12-06-2008 [eluser]abmcr[/eluser] I need to set a general variable from a custom librarie and read this variable into a controller? It is possible? How? Thank you? General variable from custom librarie - El Forum - 12-08-2008 [eluser]thinkigniter[/eluser] Am I missing the something... in Code: http://ellislab.com/codeigniter/user-guide/libraries/config.html Set a variable via config Code: $this->config->set_item('item_name', 'item_value'); and fetch it via... Code: $lang = $this->config->item('language'); or not? General variable from custom librarie - El Forum - 12-09-2008 [eluser]abmcr[/eluser] Very simple..... Thank you |