Re: IT/ITX - How to add a empty block

From: Date: Sun, 10 Feb 2002 00:16:26 +0000
Subject: Re: IT/ITX - How to add a empty block
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-808@lists.php.net to get a copy of this message
<srabol@mail.tele.dk> wrote : > Hi > > How can I add a block of HTML using the IntegratedTemplate class ? > > -- Template -- > > <!-- BEGIN showallways --> > {somevar} > <!-- END showallways --> > > <!-- BEGIN showsomtimes --> > this don't is not in the final result, but why ? > <!-- END showsomtimes --> > > $go = 10; > while($go) > { > $tpl->setCurrentBlock("showallways"); > $tpl->setVariable("somevar", $go); > $tpl->parseCurrentBlock(); > > if($go = 2 || $go = 4) > { > $tpl->setCurrentBlock("showsomtimes"); > $tpl->parseCurrentBlock(); > } > $go--; > } > > the above will not output my "showsometimes" block > How can I make it output the "showsometimes" block ? > > Thanks in advance. > Steen Hi, There should be a touchBlock('showsomtimes') method for that. Good luck Bertrand Mansion Mamasam

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