本文介绍了无法找到您指定的模型 - CodeIgniter Issue的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
设置模型类名大写 My_model 设置模型php文件名 my_model 使用小写(文件名)加载模型 $ this-> load-> model('my_model');
Make the model class name Uppercase My_model
Make the model php file name Lowercase my_model
Load the model using Lowercase (file name) $this->load->model('my_model');
我无法找到模型错误。
$this->load->model('1/Gift_model');我的模型文件名是 gift_model.php ,在/ models / 1 / 。
My model file name is gift_model.php within /models/1/.
我用以下方式声明模型。
I declare the model the following way.
class Gift_model extends CI_Model {根据CodeIgniter的文档,我以正确的方式做。有什么建议么?
According to CodeIgniter's documentation I'm doing it the correct way. Any suggestions? I have 5 other models named exactly the same way and they're all loading fine.
推荐答案
更多推荐
无法找到您指定的模型
发布评论