title: render a view from another controller, yii
body: <p>The controller:</p>
  
  <pre><code>controllers
  |-FooController.php
  |-BarController.php
  </code></pre>
  
  <p>The views:</p>
  
  <pre><code>view
  |-foo|
  |    |-index.php
  |    |-error.php
  |
  |-bar|
       |-index.php
  </code></pre>
  
  <p>How to render the error.php view with an action of the bar controller?
  I have tried:</p>
  
  <pre><code>$this-&gt;render('foo/error');
  </code></pre>
  
  <p>But it doesn't work.</p>