[eluser]shanemesser[/eluser]
Can someone help me with view partials please (I need to use a view partial here because the small modules are standalone).
I am trying to 1--use a default controller (which works) 2-- route anything that has "widget" in to /module/controller/function AND 3--route everything else to a third controller (which works).
For example: domain.com/widget/module/controller/function would route to module/controller/function.
I have this in my routes (using an html muodule directory with html controller class and index method:
Code:
$route['default_controller'] = "_page/page";
$route['html/html/index'] = "html/html/index";
$route[':any'] = "_page/page";
And and trying to call this:
Code:
Modules::run('html');
Modules::run('html/html');
Modules::run('html/html/index');
These DO load the class, (I put an echo statement and see that the __contstruct is being called), but the index() method never gets called no matter what I do.
In fact, I can't seem to do anything to get any actual method to run. I can only get the class to instantiate (which I'm not even sure where it's getting the command to do that). In any event, can someone guide me how to keep line 1 and 3 of my route, but add a line that lets me route the HMVC right in order to run a method. or maybe I'm clueless and doing something else wrong...?