[Solar-talk] View, call helpers after _render() ?
Matt M.
goodieboy at gmail.com
Fri Nov 3 05:09:18 PST 2006
Hi,
Works like:
<?php $this->layout('document') ?>
// here i set slots in the ''document" template
// now I'd like it to render by itself...
// or I could do:
<?php echo $this->layout() ?>
but It'd be nice to have it done automatically. It needs to happen after all
of the contents of the template have been rendererd. Does that make sense?
Matt
On 11/3/06, Rodrigo Moraes <rodrigo.moraes at gmail.com> wrote:
>
> 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
> _______________________________________________
> solar-talk mailing list
> solar-talk at lists.solarphp.com
> http://mail.killersoft.com/mailman/listinfo/solar-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.killersoft.com/pipermail/solar-talk/attachments/20061103/99683f76/attachment-0001.htm
More information about the solar-talk
mailing list