Skip to content
Advertisement

Tag: twig

Twig: Selecting certain blocks and rendering them

I am intergrating the twig templating engine into a PHP application. In particular, I would like to use the twig engine to render forms. Having had a look at how symfony2 uses twig to render form widgets, they have a huge template file which contains all the widgets like so: The question I have is how can I “grab” blocks

Advertisement