[eluser]madmuffin[/eluser]
Bumping this question. Any hints on my issue?
[quote author="madmuffin" date="1338650931"]hello, I am supposed to "modularize" an existing project.
current structure is:
Code:
application/
+ controllers/
+ admin.php (extending MY_Controller)
+ user.php (extending MY_Controller)
+ core/
+ MY_Controller.php (extending CI_Controller)
the new structure should look loke this:
Code:
application/
+ controllers/
+ admin.php (extending MY_Controller)
+ user.php (extending MY_Controller)
+ core/
+ MY_Controller.php (extending CI_Controller)
+ modules/
+ mod1/
+ controllers/
+ mod1.php (extending MX_Controller)
admin.php should still create the website's design, propagate a list of avaliable modules, give oppurtinity to "enable/disable" them.
Unfortunately, when I try to call
Code:
Modules::run('mod1/mod1/function');
I get an error
Code:
PHP Fatal error: Class 'Modules' not found in <path>/application/controllers/admin.php on line 50
Must admin.php also extend MX_Controller? I tried that, but that also gave me an error
Code:
PHP Fatal error: Class 'MX_Controller' not found in ...
I would really appreciate any hints!
(Running CodeIgniter 2.1.0)
madmuffin[/quote]