Re: Bug in HTML_Template_Sigma
| From: | Alexey Borzov | Date: | Fri, 02 May 2003 12:05:37 +0000 |
| Subject: | Re: Bug in HTML_Template_Sigma | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5185@lists.php.net to get a copy of this message | ||
Hi!
Thomas A. Lowery wrote:
Er, you seem to be right. IT does this, too, only it has a public property to control this behaviuor instead of a parameter. The question is: how and when did I manage to set the default value for Sigma's parameter to true, while in IT it is false?.. :[ I don't know whether it is feasible now to make a 'fixed' release as Sigma 1.0 cannot be considered a 'drop-in' replacement for IT, there are BC breaks concerning template callbacks.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.