[eluser]Stunt[/eluser]
thanks to your great job
HMVC becoming inseparable part of my projects.
some problem here I have with HMVC in CI2 that not fixed yet.
then I decided to explain that here maybe someone know better way to solve it.
when I use modules::run in my normal CI controller loaded view file
some problem occurred.
The fix I use in my called module is it:
in my module controller:
1- extend to CI_Controller Instead of MX_Controller.
2- then you should change your module view address from CI orginal view directory in load. something like it :
Code:
$this->load->view('../modules/welcome/views/welcome_message')
3- next problem is using libraries! to fix it I load library in this way :
Code:
$this->session = $this->load->library('session')
even if you autoloaded library. you need load that in above way to make it work!