Answer the question
In order to leave comments, you need to log in
Why don't error pages work in Symfony 4?
Hello everyone, I've come across this strange thing.
Symfony 4.4.8
Did everything according to the instructions as here
In an attempt to make beautiful error pages for my site.
I go to localhost / _error / 404 I see the page everything is OK (in dev) I
switch env to prod
I go to the controller that generates an error I divide it like this
if(!$entity){
throw new HttpException(Response::HTTP_GONE, $this->failure_messages);
}
bin/consoleserver:start
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question