Controller的方法中不能连续加载两个model?
本帖最后由 不移山的愚公 于 2016-6-23 11:45 编辑在Controller的方法中连续加载两个model第二个model在引用时报Undefined property: SoCtl::$cust
部分代码如下:
$this->load->model('So_model','so');
$this->load->model('Cust_model','cust');
$this->cust->update_cust($this->input->post('cust_id'), $arr2, $corp_id); 请各位大侠帮忙 可以加载两个model Cust_model里内容有错吧 梦想杀死 发表于 2016-6-23 16:42
Cust_model里内容有错吧
单独加载Cust_model没问题 梦想杀死 发表于 2016-6-23 16:42
Cust_model里内容有错吧
经过仔细检查真是model里写错了,继承CI_Controller了。十分感谢。
页:
[1]