For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > January 2006 > Re: [SMARTY] Controling buffer: php/smarty or apache?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] Controling buffer: php/smarty or apache?
robert mena

2006-01-23, 7:58 am

Hi Vicente,

Thanks for the reply.

I suppose you mean having separate tpls for the segments of the page and
calling smarty->display several times for each tpl?

Is there any other way such as a flag in smarty to disable this buffer? I
am assuming that smarty does ob_start at the beginning of the execution.

tks,


On 1/23/06, Vicente Werner <vwerner@gmail.com> wrote:
>
> Smarty buffers all the output until you do a $smarty->display or you echo
> the fetched output through $smarty->fetch. That's why it appears to be
> drawn
> at once.
> One thing you can do it's to slice the page into three or four objects
> that
> can be rendered incrementally (you render the header and display it, then
> go
> for the body, footer, etc..)
>
> --
> Vicente Werner y Sánchez
>


messju mohr

2006-01-23, 7:58 am

On Mon, Jan 23, 2006 at 06:13:35AM -0400, robert mena wrote:
> Hi Vicente,
>
> Thanks for the reply.
>
> I suppose you mean having separate tpls for the segments of the page and
> calling smarty->display several times for each tpl?


no. just turn off output-buffering in php (see my other post).

> Is there any other way such as a flag in smarty to disable this buffer? I
> am assuming that smarty does ob_start at the beginning of the execution.


no, it doesn't. (see my other post).
[color=darkred]
> tks,
>
>
> On 1/23/06, Vicente Werner <vwerner@gmail.com> wrote:
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com