title: Controller won't pass a variable in View for Zend Framework
body: <p>So I started to learn Zend Framework 1 and run in to some problem, with passing a values in a View. I created a simple variable in IndexContoller like this:</p>
  
  <p>
  
  <pre><code>class IndexController extends Zend_Controller_Action
  {
  
      public function init()
      {
          /* Initialize action controller here */
      }
  
      public function indexAction()
      {
          $this-&gt;view-&gt;content = "Lorem ipsum";
      }
  
  
  }
  </code></pre>
  
  <p>And then I called it in a layout like this:</p>
  
  <pre><code>&lt;div class="carousel-caption"&gt;
    &lt;h2&gt;&lt;?php echo $this-&gt;layout()-&gt;content; ?&gt;&lt;/h2&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It returns nothing, when I do var dump</p>
  
  <pre><code>var_dump($this-&gt;layout()-&gt;content)
  </code></pre>
  
  <p>I get this back: </p>
  
  <pre><code>string(0) ""
  </code></pre>
  
  <p>How to fix this?</p>