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
. ?
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.