title: ZEND, rendering different view with data
body: <p>I have a problem as I want to render view from different controller and pass there datas. Do You know how to do it?</p>
  
  <p>I was trying:</p>
  
  <pre><code>$this-&gt;renderScript('index/index.phtml')-&gt;entries = $result;
  </code></pre>
  
  <p>But my if:</p>
  
  <pre><code>if (count($this-&gt;entries) &lt;= 0)
  </code></pre>
  
  <p>return 0 </p>
  
  <p>Do You know how to do it?
  THANKS!</p>