Le 12/03/2011 02:35, Robert Campbell a écrit :
Coming from another framework, I needed a way to conditionally render
sections/regions/(slots in symfony speak) in a layout based on whether
they are empty or not.
I was checking the documentation of SF2 if there is anything I could
exploit to accomplish the same. I've not found anything yet, so I'm
asking: Is there any known way I can accomplish this in Twig template
or will I have to write my own helper?
This is supported natively by Twig itself. It is not something added by
Symfony so the answer is in the Twig documentation:
http://www.twig-project.org/doc/templates.html#dynamic-inheritance
Regards
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en