/** * +---------------------------------------------------------- * 运行应用实例 入口文件使用的快捷方法 * +---------------------------------------------------------- * @access public * +---------------------------------------------------------- * @return void +---------------------------------------------------------- */ public static function run() { FApp::init(); //if (FCache::check()) { // echo FCache::getContent(); //} else { FDispatcher::dispatch(); //} }
$_F['module'] = $value; } if ($key == '*') { $default_module = $value; } } if (!$_F['module']) { $_F['module'] = $default_module; } } if (!$_F['uri']) { FDispatcher::init(); } } public static function resetAll() { global $_F; $_F = array(); } public static function destroy() { Flib::resetAll(); spl_autoload_unregister(array('Flib', 'autoLoad')); restore_error_handler(); restore_exception_handler(); } } Flib::init(); if (FLIB_RUN_MODE != 'manual') { FApp::run(); }