Example #1
0
 function setDbConfigValues(&$view)
 {
     $configFile = new ConfigFileStorage();
     $configFile->reload();
     $view->setValue("dbUser", $configFile->getValue("db_username"));
     $view->setValue("dbPassword", $configFile->getValue("db_password"));
     $view->setValue("dbServer", $configFile->getValue("db_host"));
     $view->setValue("dbName", $configFile->getValue("db_database"));
     $view->setValue("dbPrefix", $configFile->getValue("db_prefix"));
     return true;
 }