Example #1
0
 static function load($config = array())
 {
     self::$config = $config;
     self::$mode = $config['mode'];
     self::$appsDir = $config['appsDir'];
     self::$pluginsDir = $config['pluginsDir'];
     self::$helpersDir = $config['helpersDir'];
     self::$mainApp = $config['mainApp'];
     self::$disabledApps = $config['disabledApps'];
     self::$database = $config['database'];
     self::init();
 }