title: codeigniter+HMVC cross module call controller->method
body: <p>I am pulling all my hair off... Have been searching every thread, would appreciate if someone can point me to a working example.</p>
  
  <p>Accroding to the doc: <a href="https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc" rel="noreferrer">https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc</a>
  I can call another module->controller using</p>
  
  <pre><code>modules::run('module/controller/method', $params);
  modules::load('module/controller/method', $params);
  or
  $this-&gt;load-&gt;module('module/controller');
  $this-&gt;controller-&gt;method();
  </code></pre>
  
  <p><strong>Problem:</strong> the "method()" is never called. only constructor of the controller is called every time.</p>
  
  <p>The objective is to build self-contained MVCs as module and use by other controllers.
  But no matter what I do, it only calls the constructor, method is not called.
  I started using HMVC a few weeks ago, did I miss something in the doc or it is not used this way?<br/>
  Here is the setup:</p>
  
  <pre><code>modules
    |--ztest1
    |   |--controller/c1.php
    |--ztest2
        |--controller/c2.php
  
  class C1 extends MX_Controller {
    function __construct() {
      parent::__construct();
    }
    function index () {
      Modules::run('ztest2/c2/testc2/');
      //Modules::load('ztest2/c2/testc2/');
      //$this-&gt;load-&gt;module('ztest2/c2/testc2/');
      //$this-&gt;c2-&gt;testc2();
    }
  }
  
  class C2 extends MX_Controller {
    function __construct() {
      parent::__construct();
      echo __FILE__." // ".__CLASS__."/".__FUNCTION__.PHP_EOL;
    }
    function testc2(){
      echo __FILE__." // ".__CLASS__."/".__FUNCTION__.PHP_EOL;
    }
  }
  
  output:
  /app/modules/ztest2/controllers/c2.php // C2/__construct
  </code></pre>
  
  <p>additional note: no error or warning with the script. It just quietly calls the constructor.</p>