php - 404 route not found exception handling in symfony

504

I want to create a template for page not found. whenever 404 no route found exception is throwing need to redirect to page. As that is not in proper UI way. I tried steps from this URL

https://symfony.com/doc/current/controller/error_pages.html

I am new to symfony . followed steps until service.yml and created customExceptionController.php and I dont know what to do next step and I am getting error like

enter image description here

How to fix this issue.Please anyone help me to get out of this issue. Thanks in advance

People are also looking for solutions to the problem: php - Laravel Task Scheduling where stores?

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.