title: Render view in higher script path with Zend Framework
body: <p>Lets assume the following code within a controller: </p>
  
  <pre><code>$this-&gt;view-&gt;addScriptPath('dir1/views/scripts');
  $this-&gt;view-&gt;addScriptPath('dir2/views/scripts');
  $this-&gt;render('index.phtml');
  </code></pre>
  
  <p>Where dir1/views/scripts contains 2 files:  </p>
  
  <pre><code>-index.phtml  
  -table.phtml
  </code></pre>
  
  <p>And dir2/views/scripts:</p>
  
  <pre><code>-table.phtml
  </code></pre>
  
  <p>Now, it will render the index.phtml in dir1 since dir 2 doesn't have an index.phtml.  </p>
  
  <p>Index.phtml looks something like:</p>
  
  <pre><code>&lt;somehtml&gt;
         &lt;?= $this-&gt;render('table.phtml') ?&gt;
  &lt;/somehtml&gt;
  </code></pre>
  
  <p>This is where the confusion starts for me. I would expect it to render the table.phtml in the last directory added to the script path stack, but it doesn't.<br>
  Is there a simple solution/explanation to my problem?</p>