[eluser]cinewbie81[/eluser]
Ok let me stated it clear here ..
I store some System Setting Data such as 'Database Version', 'Company Name' etc in a database.
I can get all these information from any class by do the query such as "select dbversion, compname from setting" then get the corresponding results .. instead of have to query each time, i want the system to RUN the query when the system first loaded, then assign it to a global variable such as folloing:
runQuery("select dbversion, compname from setting")
$dbVersion = field[dbversion];
$compname = field[compname];
So in other controller class, instead of query the same thing again again, i want it to simply refer to $dbVersion and $compname variable .. how am i going to do it ?