什么情况下,可以不用require或include就可以直接引用类???
- PHP code
<!---ecms Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/** 载入配置支持 */if (!@include_once 'config.inc.php') { file_exists('./install.php') ? header('Location: install.php') : print('Missing Config Fil<i>1本文来#源gaodai$ma#com搞$代*码*网</i><pre>搞代gaodaima码
e’); 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 中引用的呢?