Welcome Guest, Not a member yet? Register   Sign In
HMVC - Extend MX_Controller gives me an error, CI_Controller do not!?
#1

[eluser]Sven Delle[/eluser]
I read that I should extend with MX_Controller if I use HMVC for codeigniter. But I've never managed to ever extend that. I've always used CI_Controller.

Now, can anyone explain to me why that is - and what's the point of saying I should use MX_Controller when I can't?
#2

[eluser]PhilTem[/eluser]
If you just want to have modular separation, you are fine with extending CI_Controller. If you want to call other modules' controllers from within your current controller, both controllers need to extend MX_Controller.

If you get an error extending MX_Controller make sure you are including the MX_Controller file:
Code:
include(APPPATH . 'third_party/MX/Controller.php');




Theme © iAndrew 2016 - Forum software by © MyBB