Beispiel #1
0
 /**
  * Load configuration file of options
  *
  * @param  string $file
  * @return array
  */
 protected function _loadConfig($file, $environment)
 {
     $configCommon = new Zend_Config_Ini($file, $environment, true);
     $configCustom = new Zend_Config_Ini(str_replace('.common.ini', '.ini', $file), $environment);
     $configCommon->merge($configCustom);
     $configCommon->path->root = getcwd();
     $config = new System_Config_Placeholder($configCommon);
     return $config->toArray();
 }
Beispiel #2
0
 protected function _loadConfigFromFile($file)
 {
     $environment = $this->getEnvironment();
     $configCommon = new Zend_Config_Ini($file, $environment, true);
     $configCustom = new Zend_Config_Ini(str_replace('.common.ini', '.ini', $file), $environment);
     $configCommon->merge($configCustom);
     if (isset($this->rootDir)) {
         $configCommon->path->root = $this->rootDir;
     }
     require_once 'System/Config/Placeholder.php';
     $config = new System_Config_Placeholder($configCommon);
     return $config->toArray();
 }