[Flow] How would I write a JavaScript ViewHelper
Christian Loock
chl at vkf-renzel.de
Mon Jul 21 09:39:38 CEST 2014
Hello,
I want to write a simple Wrapper ViewHelper for Javascript inside my
Templates.
The Idea is to have a ViewHelper that acts like a section, that is then
rendered inside the Header of my Layout. You now might ask yourself, why
not just declare a section? The problem is, that I want to be able to
add JavaScript to my header, inside my custom ViewHelpers. Sections that
I define in the ViewHelper, dont seem to be passed to the layout. Also,
I am not sure what happens if I have multiple instances of the same
sections. Is there some way to add Variables to the Layout from within
my ViewHelpers?
Cheers,
--
Christian Loock
Web Developer
Renzel Agentur
www.renzel-agentur.de
More information about the Flow
mailing list