-
Notifications
You must be signed in to change notification settings - Fork 0
Modular Extensions Notices and errors
If you are new to the Modular Extensions HMVC library you might get some error-messages or notices that you don't understand. This page may provide some clues.
[b]Modules output stops working after upgrade from 4.0[/b] If your module seems to stop working after updating to latest 4.2.x version, check this and [color=red]remove the return[/color] first. [code]return $this->load->view('partial', $data)[/code]
[b]Fatal error: Call to undefined method Modules::method() in (...)modules_helper.php on line 210[/b] 'Modules' is a reserved word in Modular Extensions, so you cannot define your own class as 'Modules'.
[b]Undefined property: YourController::some_method()[/b] CodeIgniter assigns the last controller loaded as the value for get_instance, and CI_Loader uses get_instance to load system libraries, it is necessary to load system libraries in your module controller constructor to avoid this problem.