Return to Snippet

Revision: 15123
at June 25, 2009 08:18 by sveggiani


Initial Code
// 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);
        }

}

?>

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

Initial Description


Initial Title
Change layout for error pages in Cakephp

Initial Tags
cakephp

Initial Language
PHP