I have CI project which have third_party library HMVC, and it's already in use. I was searching lots of, how to load modules action of it.. but can't find working, and i think that something is missing at my files..
so in HMVC i have 2 files: Loader.php and Router.php
Loader.php is HERE AND Router.php is HERE
and when i'm trying to load function of some of controllers ($this -> load -> module('module_name');
), I get error that function module can't be found.
also i found that in with HMVC it could be loaded with model function ($this -> load -> model('module_name');
), but then i get error that module_name
cannot be found.
so maybe someone could help me how to load module function from another module? (if it is possible)
P.S. I have in applincation folder, folder named modules in which there is some modules like user, admin and global.
in user there is views, controllers folders and etc..
And i need for example to call function from users/services/index
i need to call function which is in global/service/index
. any suggestions?