Why i can't use my own 404 page

Notice: This thread is very old.
opupenko
Member | 4
+
0
-

Hi everybody.
Plz tell me, why in my project, when error 404 raised, nette rendered system 404 page?
I have my own 404 page template and want to use it.

Last edited by opupenko (2012-02-07 09:00)

HosipLan
Moderator | 4668
+
0
-

The easies way is to copy it as a template for ErrorPresenter

opupenko
Member | 4
+
0
-

I asked about another.
ErrorPresenter does not take controlling!!!
Error pages showed by application, not this presenter!

dRaGen
Member | 92
+
0
-

You may not configured that. Try to add this code to your bootstrap.php

$application = $container->application;
$application->catchExceptions = TRUE;
$application->errorPresenter = 'Error';
opupenko
Member | 4
+
0
-

thank you very much, it works!!