Why i can't use my own 404 page

8 years ago

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)

8 years ago

HosipLan
Moderator | 4693
+
0
-

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

8 years ago

opupenko
Member | 4
+
0
-

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

8 years ago

dRaGen
Member | 101
+
0
-

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

$application = $container->application;
$application->catchExceptions = TRUE;
$application->errorPresenter = 'Error';

8 years ago

opupenko
Member | 4
+
0
-

thank you very much, it works!!