您好,欢迎访问一九零五行业门户网

codeigniter 如何载入model类

codeigniter 怎么载入model类?
我必须这么写
class indexwelcome extends controller {
function __construct()
{
parent::controller();
$this->load->model('mtest','',true);
}
但是我看到别人这么写
$this->load->model('mtest');
如果我后面不加,'',ture,就会报错,请问为什么啊
------解决方案--------------------
不会吧?一直都是这么用的!没有什么错误啊!
你的model是怎么声明的不?
class newmodel extends model {
function newmodel(){
parent::model();
}
}
其它类似信息

推荐信息