Bug #17877 [Com]: Not always replacing placeholders in added blocktemplates

From: Date: Thu, 08 Mar 2012 09:56:31 +0000
Subject: Bug #17877 [Com]: Not always replacing placeholders in added blocktemplates
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8363@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=17877&edit=1 ID: 17877 Comment by: frodopopodo Reported By: m dot dmoch at ergo-data dot de Summary: Not always replacing placeholders in added blocktemplates Status: Verified Type: Bug Package: HTML_Template_IT Operating System: MacOSX (probably all) Package Version: 1.3.0 PHP Version: 5.3.2 Assigned To: gregorycu New Comment: Hi gregorycu, will the BUG be solved or is the project dead? Best Manuel Previous Comments: ------------------------------------------------------------------------ [2010-10-03 18:20:40] gregorycu <div id="changeset"> <span class="removed">-Status: Assigned</span> <span class="added">+Status: Verified</span> </div> ------------------------------------------------------------------------ [2010-09-21 16:56:49] gregorycu <div id="changeset"> <span class="removed">-Status: Open</span> <span class="added">+Status: Assigned</span> <span class="removed">-Assigned To:</span> <span class="added">+Assigned To: gregorycu</span> </div> ------------------------------------------------------------------------ [2010-09-21 10:58:08] asheidan <div id="changeset"> <span class="removed">-Operating System: MacOSX (propably all)</span> <span class="added">+Operating System: MacOSX (probably all)</span> </div> ------------------------------------------------------------------------ [2010-09-21 10:57:30] asheidan <div id="changeset"> <span class="removed">-Operating System: MacOSX</span> <span class="added">+Operating System: MacOSX (propably all)</span> </div> ------------------------------------------------------------------------ [2010-09-20 22:11:44] asheidan Description: ------------ When adding another template with addBlockfile placeholders aren't replaced as they should. If a placeholder is present in both of the templates it's only replaced in the "outer" template. Test script: --------------- ### outer.tpl ######### List: <!-- BEGIN ITEM --> * {bar} <!-- END ITEM --> {foo} ### inner.tpl ######### {foo} lorem ipsum ### script.php ######### require_once('HTML/Template/ITX.php'); $tpl = new HTML_Template_ITX(); $tpl->loadTemplateFile('outer.tpl'); $tpl->addBlockfile('bar','INNER','inner.tpl'); $tpl->setCurrentBlock(); $tpl->setVariable('foo',"monkey"); $tpl->show(); Expected result: ---------------- List: * monkey lorem ipsum monkey Actual result: -------------- List: monkey ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=17877&edit=1

« previous php.pear.bugs (#8363) next »