Posted By

sveggiani on 06/25/09


Tagged

errors cakephp 404 not-mine


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

Vladislav
tmmyy
kwanhon
hmvrulz


Change layout for error pages in Cakephp


 / Published in: PHP
 

URL: http://groups.google.com/group/cake-php/browse_thread/thread/d38f5178a9e5dec3

  1. // Create an error.php file in your /app folder with the following code:
  2.  
  3. <?php
  4.  
  5. class AppError extends ErrorHandler {
  6.  
  7. function error404($params) {
  8. $this->controller->layout = "error";
  9. parent::error404($params);
  10. }
  11.  
  12. }
  13.  
  14. ?>

Report this snippet  

You need to login to post a comment.