title: Zend_Session: Session must be started before any output has been sent to the browser
body: <p>I've run into this issue before, but I can't remember how to solve it. I have created a bare bones (can't get any simpler) controller, and am just trying to echo something to the browser, and I am getting this message:</p>
  
  <pre><code>Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Session must be started before any output has been sent to the browser ...
  </code></pre>
  
  <p>Here's my <strong>entire</strong> controller. It's displaying 'success', but it also displays the error message. How can I silence that error message so I can simply echo something to the browser?</p>
  
  <pre><code>&lt;?php
  
  class CacheController extends Zend_Controller_Action
  {
      public function clearAction()
      {
          $this-&gt;_helper-&gt;layout-&gt;disableLayout();
          $this-&gt;_helper-&gt;viewRenderer-&gt;setNoRender();
          try {
              $result = Model_Cache::emptyCache(array('foobar'=&gt;1));
  
              if ($result['status'] == true) {
                  echo 'Success';
              } else {
                  echo 'Error: ' . $result['message'];
              }
          } catch (Exception $e) {
              echo 'Error: ' . $e-&gt;getMessage();
          }
      }
  }
  </code></pre>