A
A
Alexander Ivanov2021-01-17 18:34:07
PHP
Alexander Ivanov, 2021-01-17 18:34:07

How to display exceptions on a separate page?

when the site goes to a non-existent page, an exception is thrown from the router Route error: Controller {Index.htmlController} not found over the entire page of the site. how to throw this exception so that after going to the error page it can be inserted into the site design itself, i.e. beautiful error output?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zorca, 2021-01-17
@zorca

This exception needs to be handled in your code and give the user a 404 error page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question