Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.1

Bug #17877 Not always replacing placeholders in added blocktemplates
Submitted: 2010-09-21 02:11 UTC
From: asheidan Assigned: gregorycu
Status: Verified Package: HTML_Template_IT (version 1.3.0)
PHP Version: 5.3.2 OS: MacOSX (probably all)
Roadmaps: (Not assigned)    
Subscription  


 [2010-09-21 02:11 UTC] asheidan (Emil Eriksson)
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

Comments

 [2010-09-21 14:57 UTC] asheidan (Emil Eriksson)
-Operating System: MacOSX +Operating System: MacOSX (propably all)
 [2010-09-21 14:58 UTC] asheidan (Emil Eriksson)
-Operating System: MacOSX (propably all) +Operating System: MacOSX (probably all)
 [2010-09-21 20:56 UTC] gregorycu (Gregory Currie)
-Status: Open +Status: Assigned -Assigned To: +Assigned To: gregorycu
 [2010-10-03 22:20 UTC] gregorycu (Gregory Currie)
-Status: Assigned +Status: Verified
 [2012-03-08 14:55 UTC] frodopopodo (Manuel Dmoch)
Hi gregorycu, will the BUG be solved or is the project dead? Best Manuel