Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
Archivo: config.php Proyecto: x17x2a/ff
 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');
     }
 }
Ejemplo n.º 3
0
 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;
 }