S
S
Sergey Beloventsev2021-06-01 09:45:37
PHP
Sergey Beloventsev, 2021-06-01 09:45:37

How to pass parameters between twig templates?

I have the following structure


-templates
    |-app
     -- home.html.twig
    |-inclides
     |-header 
      --header.html.twig 
    -base.html.twig


home.html.twig inherits from base.html.twig. And header.html.twig is included in base.html.twig.
I need to pass breadcrumbs from home.html.twig to header.html.twig can you tell me how to do this?

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