Welcome Guest, Not a member yet? Register   Sign In
Newbie question - global variable in codeigniter
#6

[eluser]Senthilguru[/eluser]
Global variable Declaration..
declare it in config file : location.... system/application/config/config.php

Code:
$config['site_name'] =   'XXXXXXXXXXXXXXXXXXXX';

get anywhere like this....

Code:
$this->config->item('site_name');



Cheers,
Senthilguru.E
www.cogzidel.in


Messages In This Thread
Newbie question - global variable in codeigniter - by El Forum - 10-18-2008, 04:45 AM
Newbie question - global variable in codeigniter - by El Forum - 10-18-2008, 05:14 AM
Newbie question - global variable in codeigniter - by El Forum - 10-18-2008, 05:36 AM
Newbie question - global variable in codeigniter - by El Forum - 10-18-2008, 05:41 AM
Newbie question - global variable in codeigniter - by El Forum - 10-18-2008, 05:50 AM
Newbie question - global variable in codeigniter - by El Forum - 10-18-2008, 05:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB