首页 > thinkphp 3.1放到服务器上后,用了M方法一直提示Class 'Model' not found

thinkphp 3.1放到服务器上后,用了M方法一直提示Class 'Model' not found

本地运行好好的呢,这是什么神奇的原因

我就写了个测试代码:

public function addUser() {
        $user = M('users');
        echo $user->select();
    }

这是错误信息:
Fatal error: Class 'Model' not found in D:\web_root\tp\Home\Runtime~runtime.php on line 1


删除Runtime目录试一下

【热门文章】
【热门文章】