Ok ive done a clean install of CI 1.6.3 + ME 4206. Moved the welcome controller and welcome view into a module. Created an admin module with just 1 controller (admin.php) and 1 method called ‘test’. The admin method ‘test’ just echos a string.
In the welcome_message.php view file ive just got
echo modules::run('admin', '', 'test');
This works as expected and produces the following log
DEBUG - 2008-07-23 17:50:44 --> Config Class Initialized
DEBUG - 2008-07-23 17:50:44 --> Hooks Class Initialized
DEBUG - 2008-07-23 17:50:44 --> URI Class Initialized
DEBUG - 2008-07-23 17:50:44 --> No URI present. Default controller set.
DEBUG - 2008-07-23 17:50:44 --> Router Class Initialized
DEBUG - 2008-07-23 17:50:44 --> Output Class Initialized
DEBUG - 2008-07-23 17:50:44 --> Input Class Initialized
DEBUG - 2008-07-23 17:50:44 --> Global POST and COOKIE data sanitized
DEBUG - 2008-07-23 17:50:44 --> Language Class Initialized
DEBUG - 2008-07-23 17:50:44 --> Welcome Controller Initialized
DEBUG - 2008-07-23 17:50:44 --> Loader Class Initialized
DEBUG - 2008-07-23 17:50:44 --> File loaded: C:\xampplite\htdocs\me_test/system/application/modules/admin/controllers/admin.php
DEBUG - 2008-07-23 17:50:44 --> Admin Controller Initialized
DEBUG - 2008-07-23 17:50:44 --> File loaded: C:\xampplite\htdocs\me_test/system/application/modules/welcome/views/welcome_message.php
DEBUG - 2008-07-23 17:50:44 --> Final output sent to browser
DEBUG - 2008-07-23 17:50:44 --> Total execution time: 0.0949
But when I change it to
echo modules::run('admin/controllers/admin', '', 'test');
which I would have thought would have been the same thing as above, I just get a blank page and the following log.
DEBUG - 2008-07-23 17:52:11 --> Config Class Initialized
DEBUG - 2008-07-23 17:52:11 --> Hooks Class Initialized
DEBUG - 2008-07-23 17:52:11 --> URI Class Initialized
DEBUG - 2008-07-23 17:52:11 --> No URI present. Default controller set.
DEBUG - 2008-07-23 17:52:11 --> Router Class Initialized
DEBUG - 2008-07-23 17:52:11 --> Output Class Initialized
DEBUG - 2008-07-23 17:52:11 --> Input Class Initialized
DEBUG - 2008-07-23 17:52:11 --> Global POST and COOKIE data sanitized
DEBUG - 2008-07-23 17:52:11 --> Language Class Initialized
DEBUG - 2008-07-23 17:52:11 --> Welcome Controller Initialized
DEBUG - 2008-07-23 17:52:11 --> Loader Class Initialized
DEBUG - 2008-07-23 17:52:11 --> File loaded: C:\xampplite\htdocs\me_test/system/application/modules/welcome/views/welcome_message.php
DEBUG - 2008-07-23 17:52:11 --> Final output sent to browser
DEBUG - 2008-07-23 17:52:11 --> Total execution time: 0.0826
Maybe its not possible to call a method from a controller which isn’t named the same as the module folder?