Ejemplo n.º 1
0
 /**
  * @param string $path 文件路径
  * @param array $name 文件名称
  */
 static function setConfig($path, $name)
 {
     foreach ($name as $nameValue) {
         $ConfigPath = $path . $nameValue . EXT;
         if (file_exists($ConfigPath)) {
             self::$Configs = array_merge(self::$Configs, require $ConfigPath);
         }
     }
     $GLOBALS['Config'] =& self::$Configs;
     return self::$Configs;
 }