zendframework / zend-expressive-twigrenderer

Twig integration for Expressive
BSD 3-Clause "New" or "Revised" License
25 stars 14 forks source link

How get container in twig base layout #40

Closed LeikoDmitry closed 6 years ago

LeikoDmitry commented 6 years ago

Hello, How get container in twig base layout?

geerteltink commented 6 years ago

Issues are for reporting bugs. Questions can be asked at our forums or slack.

You cannot get the container in a template. You should inject the vars you need or create extensions that would do what you want to do.

In general injecting the entire container anywhere is considered bad practice.