Re: Bug in HTML_Template_Sigma

From: Date: Fri, 02 May 2003 11:45:05 +0000
Subject: Re: Bug in HTML_Template_Sigma
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5184@lists.php.net to get a copy of this message
On Fri, May 02, 2003 at 03:18:53PM +0400, Alexey Borzov wrote: > Hi! > > Thomas A. Lowery wrote: > > Before I show the page is displayed I do > > $rslt = $obj->cache->save($tpl->get()); > > ... > > > > This saves the page. then $tpl->show() to display. > > > > This fails while using Sigma. The first time I get a blank page, > > however upon refresh (pulling from cache) I get the populated > > page. Looks like the get() function is clearing the template. > > Well, this not a bug, this behaviour is intended and is even documented: > > http://pear.php.net/manual/en/package.html.html-template-sigma.html-template-sigma.get.php > > If you don't want the block to be cleared, then you need to pass false as a > second parameter to get(): > $rslt = $obj->cache->save($tpl->get('__global__', false)); > ('__global__' here is a special block meaning 'entire template') If intended, that doesn't make the package a "drop-in" replacement for IT. Unless of course IT also does this and I totally missed the boat ;-) Thanks for the link to the documentation. Cool, someone updated the docs on the pear site! T

« previous php.pear.general (#5184) next »