D
D
Deno952017-02-27 21:53:58
symfony
Deno95, 2017-02-27 21:53:58

How to make a single function to be called in a twig template?

Hello. Tell me how to make a single function so that you can call it in any twig template without forwarding it through:

return $this->render('AppBundle:Default:facebook.html.twig', []);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Pavlov, 2017-02-28
@lexxpavlov

symfony.com/doc/current/templating/twig_extension.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question