Welcome Guest, Not a member yet? Register   Sign In
Where to put a "global variable" for the entire website
#2

[eluser]kgill[/eluser]
You're correct, stick it in your config.php file:

$config['sitename'] = 'This is my temp name';

then you can use it anywhere in your app with the following:

$this->config->item('sitename');


Messages In This Thread
Where to put a "global variable" for the entire website - by El Forum - 11-26-2008, 08:08 PM
Where to put a "global variable" for the entire website - by El Forum - 11-26-2008, 09:21 PM
Where to put a "global variable" for the entire website - by El Forum - 11-26-2008, 09:24 PM
Where to put a "global variable" for the entire website - by El Forum - 11-26-2008, 09:28 PM
Where to put a "global variable" for the entire website - by El Forum - 11-26-2008, 09:39 PM
Where to put a "global variable" for the entire website - by El Forum - 12-29-2008, 07:37 PM
Where to put a "global variable" for the entire website - by El Forum - 12-30-2008, 02:31 AM
Where to put a "global variable" for the entire website - by El Forum - 12-30-2008, 02:51 AM
Where to put a "global variable" for the entire website - by El Forum - 12-30-2008, 03:07 AM
Where to put a "global variable" for the entire website - by El Forum - 12-30-2008, 04:32 AM
Where to put a "global variable" for the entire website - by El Forum - 12-30-2008, 05:04 AM
Where to put a "global variable" for the entire website - by El Forum - 12-30-2008, 09:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB