static function setup() { spl_autoload_register('Core::autoload'); setlocale(LC_ALL, 'UTF8'); mb_internal_encoding('utf-8'); mb_language('uni'); self::include_path('system', SYS_PATH); //加载所有module的路径 self::include_modules(ROOT_PATH); self::include_path('application', APP_PATH); Config::load(SYS_PATH); Config::load(APP_PATH); Input::setup(); Output::setup(); View::setup(); }