title: Codeigniter HMVC - Two modules passing the same variable name to their views and causing conflict
body: <p>I have two modules in my installation. Both modules' controllers pass a variable called</p>
  
  <pre><code>$data['content']
  </code></pre>
  
  <p>to their views. Also, the first module's view runs the second module via</p>
  
  <pre><code>&lt;?php echo Modules::run('module2'); ?&gt;
  </code></pre>
  
  <p>and after that is supposed to display values from its $data['content'] variable. Unfortunately, that's when the first module's $data content is substituted with the second module's $data. This is pretty inconvenient for me, so I would like to know if there is a way to "protect" the $content variables and keep them only within their associated modules?</p>
  
  <p>I would like to avoid renaming $data['content'] if possible. I've found a not-so-perfect solution in using</p>
  
  <pre><code>$data(__CLASS__)
  </code></pre>
  
  <p>but I am curious if it is possible not to change $data['content'].</p>