How can I easily pass all the variables from a template to a partial in Symfony with output escaping
Posted
by Failpunk
on Stack Overflow
See other posts from Stack Overflow
or by Failpunk
Published on 2010-06-07T05:45:23Z
Indexed on
2010/06/07
5:52 UTC
Read the original article
Hit count: 296
It there an easy way to pass all the variables a template file has access to onto a partial when I have output escaping on?
I tend to create a template file, then refactor things into a partial at some point and it would seem that there would be an easy way to just pass all the same variables from the template to the partial and be done with it.
I have output escaping on and I can't just pass in $sf_data.
It look like calling a partial from within another partial is very simple...just pass in the variable $vars.
© Stack Overflow or respective owner