模型调用问题
$this -> load ->model('M_customer_search');$data['query_search_route']=$this->M_customer_search->search_route($r_id);
$this -> load ->model('m_customer_search');
$data['query_search_route']=$this->m_customer_search->search_route($r_id);
这两个是没有问题的!
$this -> load ->model('M_customer_search');
$data['query_search_route']=$this->m_customer_search->search_route($r_id);
$this -> load ->model('m_customer_search');
$data['query_search_route']=$this->M_customer_search->search_route($r_id);
这两个有问题!
谁能把问题说清楚? 一句话:CI 各个部分大小写命名都是有规定的,不严格遵守就出错。
参考 http://codeigniter.org.cn/user_guide/general/models.html 建议首字母全部小写,大小写混着来很容易出错,我上回就出现过大小写的问题,解决了好久,原来首字母大写了
页:
[1]