[Solar-talk] View, call helpers after _render() ?
Rodrigo Moraes
rodrigo.moraes at gmail.com
Fri Nov 3 04:56:24 PST 2006
On 11/3/06, Matt M. wrote:
> I have a situation where it'd be really nice to be able to flush the
> contents of my helper into the template without having to specifically do
> so. I don't want to make method calls at the end of the template. What would
> you guys think of adding a method in the Solar_View_Helper called
> postViewRender() or something, and have that get called in
> Solar_View::_render() ?
Wouldn't this do the trick, inside your helper?
$this->_view->fetch();
Although the new hook wouldn't hurt, maybe there is already a way to
achieve what you want. I don't understand exactly, but maybe a simple
fetch() would solve your problem. I have used $this->_view->fetch();
to add a inline (parsed) script to the head template.
rodrigo
More information about the solar-talk
mailing list