I am having two controllers hrcontroller
and admincontroller
.
And models hrmodel
and adminmodel
.
It is possible to access a method in hrmodel
from admincontroller
. ?
I am having two controllers hrcontroller
and admincontroller
.
And models hrmodel
and adminmodel
.
It is possible to access a method in hrmodel
from admincontroller
. ?
收起
当前问题酬金
¥ 0 (可追加 ¥500)
支付方式
扫码支付
in your admincontroller
you just do this
$this->load->model('hrmodel');
$this->hrmodel->get_data();
//replace get_data for a real function on your model
you can load all models you want doing this.
报告相同问题?