S
S
symnoob2020-11-20 21:50:39
symfony
symnoob, 2020-11-20 21:50:39

What is the best way to inject certain things to show in Symfony?

Hello everyone,

I am faced with the task of changing the View coming from the vendor bundle.
that is, you need to add something to the content generated by the bundle. And this block must be dynamic. And its logic does not depend on the Bundle Controller.

How it is better to implement it?

On the Symfony documentation in the Twig section, there is such a thing as rendering a controller, but I read or heard somewhere that this is a bad choice. If you also consider why and what alternatives do I have?
https://symfony.com/doc/current/reference/twig_ref...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question