public function set($k, $v) { $k = explode('.', $k); $key = implode($glue, $pieces); //self::$config[$key]; //$key = implode($glue, $pieces) //self::$config[$key] return self::$config = array_merge(self::$config, $data); }
protected static function _load() { global $server_dir; if (self::$config === null) { if (!file_exists($server_dir . '/config.yml')) { throw new ErrorNotFound('Config not found'); } self::$config = sfYaml::load($server_dir . '/config.yml'); #spyc_load_file($server_dir .'/config.yml'); } }
static function load_config() { if (!defined("C_SECURITY")) { define("C_SECURITY", TRUE); } if (config::$config === null) { @(include CONFIG_FILE); if (!isset($_conf)) { common::error("Failed loading configuration file. Make sure file ./Framework/config.php exists and is valid."); } config::$config = $_conf; } return config::$config; }