forked from bcit-ci/CodeIgniter
-
Notifications
You must be signed in to change notification settings - Fork 0
Modular Extensions Notices and errors
World Wide Web Server edited this page Jul 4, 2012
·
12 revisions
[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]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.