Re: HTML_Template_IT question

From: Date: Fri, 08 Dec 2006 17:52:20 +0000
Subject: Re: HTML_Template_IT question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26036@lists.php.net to get a copy of this message
Hi Mauro, you can either set the removeBlockIfEmpty variable to false while calling loadTemplatefile. example: $tpl = new HTML_Template_IT('./tpl'); $tpl->loadTemplatefile("myTemplate.tpl", false, false); or you can just "touch" the block to preserve it: $tpl = new HTML_Template_IT('./tpl'); $tpl->loadTemplatefile("myTemplate.tpl", true, true); $tpl->touchBlock("__global__"); greets David

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