Skip to content
Advertisement

An exception has been thrown during the rendering of a template (“Controller not found:

After updating from Symfony 3.4 to 4.0 and verifying the operation, the following error occurred.
Do you have any idea?
I added the tride code to routes.yaml by referring to the post below, but it didn’t change.

Override a controller Symfony 3.4/4.0

Error

JavaScript

Resources/views/Hq/Staff/input.html.twig

JavaScript

routes.yaml

JavaScript

ImageController.php

JavaScript

Advertisement

Answer

That’s not how you render a controller.

JavaScript

It’s clear from the doc

To include the controller, you’ll need to refer to it using the standard string syntax for controllers (i.e. controllerNamespace::action):

https://symfony.com/doc/4.0/templating/embedding_controllers.html

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement