/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Create an error.php file in your /app folder with the following code: <?php class AppError extends ErrorHandler { function error404($params) { $this->controller->layout = "error"; parent::error404($params); } } ?>
URL: http://groups.google.com/group/cake-php/browse_thread/thread/d38f5178a9e5dec3