Dear Friends,

I have got a custom view-helper which could be called multiple times.
The view-helper should create a javascript-array and render it out as
an HeadScript.

The problem is that the view-helper is intended to return a string
immediately after he is called from the view.
What I want is that the view-helper doesn't return a string and
instead of that he should save the data internally.
Before the view will be finally rendered the view-helper should
construct the javascript-array and render it out as HeadScript.

I don't know if a view-helper is intended for this use - maybe I
should use an own class.
But before I do that I need to know if there is maybe still a way.

Thank you for your help in advance!
With best regards
Innocentus

Reply via email to