Hi,
I've created error.php file in /app folder, which contains code as
follows:
<?php
class AppError extends ErrorHandler {
function error404($params) {
$this->controller->layout = "error";
parent::error404($params);
}
}
?>
function error404 is overriden to display my custom layout
"error.thtml" in /layouts folder, and then, function does what it's
suppose to do, by calling "parent version" of it
regards
On 11 Sie, 13:15, kik <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I'm trying to create custom 404 page and I know that I should create
> the /app/views/errors/error404.thtml file and insert the content
> there but I also want to use different layout for the error page. This
> means that I dont want to use my default layout but to have separate
> layout for the page that accommodates the 404 thml view file. Does
> anyone know how I can achieve that?
>
> Thank you in advance for your help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---