unset($include_path); //自动加载类 spl_autoload_register("myAutoload"); function myAutoload($className) { if (strpos($className, 'marty_')) { return; } if (!(include_once $className . '.class.php')) { //echo '<h1>file:'.$className.'.class.php not find!!!</h1>'; } else { //echo '<h1>file:'.$className.'.class.php include</h1>'; } } session_start(); Structure::init(); Prourl::parseUrl(); //包含配置文件 include DIR_ROOT . 'config.php'; //Debug if (DEBUG) { Debug::set_start_time(); } //mySmarty路径 $path_mySmarty = DIR_APP_MYSMARTY . $_GET['m'] . '.class.php'; //mySmarty创建 if (!file_exists($path_mySmarty)) { echo 'class:' . $_GET['m'] . '<br/>'; echo 'function:' . $_GET['a'] . '<br/>'; echo '<h1>' . $path_mySmarty . ':not exists</h1>'; } else {