title: How to put custom layout in 404 error page instead of default layout in cake php2.x
body: <p>i have created a error400.ctp in Errors view. that take the default layout but i want to change the custom layout</p>
  
  <p>below are my code i used but that won't work</p>
  
  <pre><code>public function error404() {
      $this-&gt;layout = 'customlayout'; // here i user customlayout instead of default
  }
  </code></pre>
  
  <p>please suggest me how to use my custom layout</p>
  
  <p>Thanks Sanjib</p>