Categories
How to detect 404 in master template?
There is a custom 404 error template that extends the main template. How in the main template to determine that the current page has a 404 status?
Answer the question
In order to leave comments, you need to log in
@if (isset($exception) && $exception->getStatusCode() == 404) @endif
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question