小编jad*_*inh的帖子

弃用: __autoload() 已弃用,使用 spl_autoload_register()

function __autoload($class) {
    if (strpos($class, 'CI_') !== 0) {
        if (file_exists($file = APPPATH . 'core/' . $class . php)) {
            include $file;
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

不推荐使用:不推荐使用 __autoload(),使用 spl_autoload_register() 和致命错误:无法在 codeigniter 中重新声明 __autoload() 错误

codeigniter

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

codeigniter ×1