Change layout for error pages in Cakephp


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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. ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.