/** * 引入文件 仅供自身使用 */ public static function import($className, $path) { //文件不存在 if (!file_exists($path)) { trigger_error('[类寻址错误]路由映射中类[' . $className . ']所设置的文件路径不存在:' . CException::filterFileTruePath($path), E_USER_ERROR); } //引入文件 $importStatus = (include_once $path); if (!$importStatus) { throw new CClassNotFoundException($className); } return $importStatus; }