title: how to check full error log in Zend framework?
body: <p>I am newbie in ZF and this is my first test. i am getting </p>
  
  <pre>
  <h1>An error occurred</h1>
  <h2>An error occurred</h2>
  </pre>
  
  <p>my error.phtml is</p>
  
  <pre>
  &lt;h1&gt;An error occurred&lt;/h1&gt;
    &lt;h2&gt;&lt;?php echo $this-&gt;message ?&gt;&lt;/h2&gt;
    &lt;?php if (isset($this-&gt;exception)): ?&gt;
  
    &lt;h3&gt;Exception information:&lt;/h3&gt;
    &lt;p&gt;
        &lt;b&gt;Message:&lt;/b&gt; &lt;?php echo $this-&gt;exception-&gt;getMessage() ?&gt;
    &lt;/p&gt;
  
    &lt;h3&gt;Stack trace:&lt;/h3&gt;
    &lt;pre&gt;&lt;?php echo $this-&gt;exception-&gt;getTraceAsString() ?&gt;
    &lt;/pre&gt;
  
    &lt;h3&gt;Request Parameters:&lt;/h3&gt;
    &lt;pre&gt;&lt;?php echo $this-&gt;escape(var_export($this-&gt;request-&gt;getParams(), true)) ?&gt;
    &lt;/pre&gt;
  
    &lt;?php endif ?&gt;
  </pre>
  
  <p>and this is what i have in my IndexAction</p>
  
  <pre>
  $this-&gt;view-&gt;title="My Places";
  $this-&gt;view-&gt;headTitle($this-&gt;view-&gt;title);
  $Places=new Places();
  echo "&lt;pre&gt;";var_dump($Places-&gt;fetchAll(null,'date_created DESC', 4)); echo "&lt;/pre&gt;";
  </pre>
  
  <p>and my module file id </p>
  
  <pre>
  class Places extends Zend_Db_Table
  {
      protected $_name='places';
      public function fetchLatest($count=10)
      {
          return $this->fetchAll(null,'date_created DESC', $count);
      }
  
  }
  </pre>
  
  <p><b> ** EDIT ** </b><br>
  ErrorController is </p>
  
  <pre>
  &lt;?php
  
  class ErrorController extends Zend_Controller_Action
  {
  
      public function errorAction()
      {
          $errors = $this-&gt;_getParam('error_handler');
  
          if (!$errors || !$errors instanceof ArrayObject) {
              $this-&gt;view-&gt;message = 'You have reached the error page';
              return;
          }
  
          switch ($errors-&gt;type) {
              case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ROUTE:
              case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
              case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
                  // 404 error -- controller or action not found
                  $this-&gt;getResponse()-&gt;setHttpResponseCode(404);
                  $priority = Zend_Log::NOTICE;
                  $this-&gt;view-&gt;message = 'Page not found';
                  break;
              default:
                  // application error
                  $this-&gt;getResponse()-&gt;setHttpResponseCode(500);
                  $priority = Zend_Log::CRIT;
                  $this-&gt;view-&gt;message = 'Application error';
                  break;
          }
  
          // Log exception, if logger available
          if ($log = $this-&gt;getLog()) {
              $log-&gt;log($this-&gt;view-&gt;message, $priority, $errors-&gt;exception);
              $log-&gt;log('Request Parameters', $priority, $errors-&gt;request-&gt;getParams());
          }
  
          // conditionally display exceptions
          if ($this-&gt;getInvokeArg('displayExceptions') == true) {
              $this-&gt;view-&gt;exception = $errors-&gt;exception;
          }
  
          $this-&gt;view-&gt;request   = $errors-&gt;request;
      }
  
      public function getLog()
      {
          $bootstrap = $this-&gt;getInvokeArg('bootstrap');
          if (!$bootstrap-&gt;hasResource('Log')) {
              return false;
          }
          $log = $bootstrap-&gt;getResource('Log');
  
          return $log;
      }
  
  
  }
  </pre>
  
  <p>How can i know what caused this error? (how can i see full error log?)<br>
  Thanks</p>