Re: Bug in HTML_Template_Sigma
| From: | Alexey Borzov | Date: | Fri, 02 May 2003 11:18:53 +0000 |
| Subject: | Re: Bug in HTML_Template_Sigma | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5183@lists.php.net to get a copy of this message | ||
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')