i've been use codeigniter with hmvc pattern.my folder structure is something like below
Now question is how can i use adminw
model in common codeigniter model ?
i've common controller which is as follow
<?php
class MY_Controller extends CI_Controller {
public function __construct(){
parent::__construct();
//here i am checking url if adminw than load model inside adminw folder
$path = $this->uri->segment(1);
if($path != ADMIN_FOLDER){
$this->load->model('modules/SettingModel');<-- BUT THIS IS NOT WORKING
}else{
$this->load->model('SettingModel');
}
in short how can i load model that is stored in hmvc folder