[eluser]eldrinofsoalim[/eluser]
Thanks for the quick reply InsiteFX!
I was able to get info from wiredesignz. He said that I shouldn't use the word "modules" but actual name of the module, which is "login". The format should be as follows:
Code:
Format: modules::run(‘module/controller/action’, $param1, $param2, .., $paramN);
I confused "module" for the word "modules", when it should mean the name of the module. In this case, it should be "login". So the "login" module will call the "login" controller, which calls the "cp" function.
Here's my setup
Code:
application/
config/
...
...
modules/
login/
controller/
login.php
model/
view/
When I get back later, I'll try the following call to the HMVC:
Code:
<?php modules::run('login/login/cp');?>
// instead of
<?php modules::run('modules/login/cp');?>
// or instead of
<?php modules::run('login/cp');?>
Do you think that will work? If not, I'll try your code next. But I doubt I can use...
Code:
<?php $this->modules::run('modules/login/cp');?>
since I'm calling it from the view, and not the controller.
What do you think? Thanks again for the help.