无法找到您指定的模型:用户 [英] Unable to locate the model you have specified: users

查看:85
本文介绍了无法找到您指定的模型:用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我要运行我的文件时,会显示如下错误:

When I am going to run my file, it shows an error like this,

Unable to locate the model you have specified: users



我在模块文件夹中有控制器,模型和视图,我认为它的HMVC结构。

I have controller, models and view in Modules folder and I think its a HMVC structure.

它有什么问题?

感谢高级。

推荐答案

$this->load->model('users');

同时确保您的模型开始如下:

Also make sure that your model starts like:

class Users extends CI_Model{  }

.4

这篇关于无法找到您指定的模型:用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆