為什么我的不能再控制器中直接new IndexModel
Class 'Home\Controller\IndexModel' not found
錯(cuò)誤位置
FILE: /data/home/bxu2359260177/htdocs/Imooc/Home/Controller/IndexController.class.php LINE: 165
Class 'Home\Controller\IndexModel' not found
錯(cuò)誤位置
FILE: /data/home/bxu2359260177/htdocs/Imooc/Home/Controller/IndexController.class.php LINE: 165
舉報(bào)
2017-01-06
謝謝??! ?我已經(jīng)解決了?。?/p>
2017-01-06
你應(yīng)該把你的model模型建在 home\Model\IndexModel.class.php