Welcome Guest, Not a member yet? Register   Sign In
General variable from custom librarie
#1

[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?
#2

[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?
#3

[eluser]abmcr[/eluser]
Very simple..... Thank you




Theme © iAndrew 2016 - Forum software by © MyBB