Beispiel #1
0
 /**
  * Carga el archivo de configuración y lo guarda en caché.
  *
  * @return bool
  */
 public static function readConfig()
 {
     if (self::$_init) {
         return true;
     }
     if (!file_exists(CONFIG_FILE)) {
         return false;
     }
     // Include the file, save the data from $CONFIG
     include_once CONFIG_FILE;
     if (isset($CONFIG) && is_array($CONFIG)) {
         self::$_cache = $CONFIG;
     }
     // We cached everything
     self::$_init = true;
     return true;
 }