为什么我的controller类not found

浏览:3382 发布日期:2016/11/07 分类:求助交流 关键字: Think/Controller thinkphp phpstorm
我用的是thinkphp3.2的版本,然后我的IndexController.class.php里会出现这样的提示 (我什么都没修改)
运行这个php文件的话,会提示Fatal error: Class 'Think\Controller' not found in /Applications/XAMPP/xamppfiles/htdocs/tp/Application/Home/Controller/IndexController.class.php on line 4。
感觉这既是我按照视频里的代码敲,但是写不进数据库的原因。但是网上找了很多方法,都不可以,有同学也碰到一样的情况吗。
还有有个小插曲,Detect PSR-0 namespace roots: Do you want to configure namespace roots? It can be done automatically or manually at Settings | Directories.
我用phpstorm打开tp的时候提示就是上面的东西,是不是跟这个也有关系呀
最佳答案
评论( 相关
后面还有条评论,点击查看>>