日期:2014-05-17  浏览次数:20396 次

什么情况下,可以不用require或include就可以直接引用类???
PHP code
/** 载入配置支持 */
if (!@include_once 'config.inc.php') {
    file_exists('./install.php') ? header('Location: install.php') : print('Missing Config File');
    exit;
}

/** 初始化组件 */
Typecho_Widget::widget('Widget_Init');

/** 注册一个初始化插件 */
Typecho_Plugin::factory('index.php')->begin();

/** 开始路由分发 */
Typecho_Router::dispatch();

/** 注册一个结束插件 */
Typecho_Plugin::factory('index.php')->end();



这是typecho的index.php的内容,其中未见到任何的require或include,怎么能够直接使用类???

------解决方案--------------------
你怎么知道不是在 config.inc.php 中引用的呢?