title: different layouts for different errors in cakephp1.3
body: <p>Is it possible to set different layouts for different errors in cakephp1.3?</p>
  
  <p>this is my <strong>AppError</strong> class</p>
  
  <pre><code>function _outputMessage($template) {
      $this-&gt;controller-&gt;beforeFilter();
      $this-&gt;controller-&gt;render($template);
      $this-&gt;controller-&gt;afterFilter();
      echo $this-&gt;controller-&gt;output;
  }
  
  function error404($params) {
      extract($params, EXTR_OVERWRITE);
      header("HTTP/1.0 404 Not Found");
      $this-&gt;error(array('code' =&gt; '404',
                      'name' =&gt; 'Not found',
                      'message' =&gt; sprintf("page not found %s", $url, $message),
                      'base' =&gt; $base));
  
      exit();
  }
  
  function item404($params) {
      extract($params, EXTR_OVERWRITE);
      header("HTTP/1.0 404 Not Found");
  
      $this-&gt;error(array('code' =&gt; '404',
                      'name' =&gt; 'Not found',
                      'message' =&gt; sprintf("Item not found %s", $url, $message),
                      'base' =&gt; $base));
  
      exit();
  }
  </code></pre>
  
  <p>I want to have layout "error" and layout "itemerror", respectively.
  I have tried setting the layout in the functions, but it does not work.</p>
  
  <p>Any help appreciated, </p>