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

[eluser]earlyriser[/eluser]
Hi.

I am making a site with the name "This is my temp name" and the only way I have found to pass this name in the a content view is with a $data['name'] = "This is my temp name". It happens I have multiple controllers where I have to do the same thing, then if the namesite changes, I will have to change it in different places.

I'm sure there is a way to declare the sitename in just one place and make the call to this variable from any controller, but I don't how. Maybe in the config file?

How do you do this?


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