Skip to content

Modular Extensions Notices and errors

World Wide Web Server edited this page Jul 4, 2012 · 12 revisions

Category:Library::HMVC

[h2]Modular Extensions - Notices and errors[/h2]

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 is 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 defined class in Modular Extensions, so you cannot define your own Modules class also.

[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 libraires in your module controller constructor to avoid this problem.

Clone this wiki locally