title: Call model from another component controller in Joomla 3.4
body: <p>I am developing <code>Joomla 3.4 application</code> where I have to call one component model into another component controller but not call from there.</p>
  
  <p>Support, i have 2 component</p>
  
  <pre><code>&gt;&gt; comp1
    model: m1
    controller: c1
  &gt;&gt; comp2
    model: m2
    controller: c2
  </code></pre>
  
  <p>I want to call <code>comp1 model (m1) into comp2 controller (c2).</code></p>
  
  <p>I tried using below code:</p>
  
  <pre><code>$model    = $this-&gt;getModel('m1', '', array());
  </code></pre>
  
  <p>But in <code>$model</code> get null value if above code use in <code>comp1 controller (c1)</code> then run perfect.</p>
  
  <p>What actually issue is not getting. Any one have a perfect idea.</p>
  
  <p>Thanks</p>