sigma it[x] problem

From: Date: Fri, 12 Dec 2003 16:46:54 +0000
Subject: sigma it[x] problem
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9489@lists.php.net to get a copy of this message
Hi, I'm using the Sigma templating system and i'm trying to utilize a block in a separate file more than once, here is an example of what's wrong : here is the php file -> // testing addblockfile(); $t->loadtemplatefile('test.skin'); $t->addblockfile('addblock_1', 'new_block1', 'test2.skin'); $t->setvariable('var1','setting the variable'); $t->parse('block1'); $t->addblockfile('addblock_2', 'new_block2', 'test2.skin'); $t->setvariable('var2','setting the variable'); $t->parse('block2'); $t->show(); --------------- now here is the template file (test.skin) ----------------------- this is a test page<br> {addblock_1} <br>-- in between the blocks --<br> {addblock_2} bottom of the test page<br> --------------- now here is the second template file used with addblockfile() ----------- <!-- BEGIN block1 --> this is block1 {var1} <!-- END block1 --> <!-- BEGIN block2 --> this is block2 {var2} <!-- END block2 --> ---------------------- now here is the output ----------------------- this is a test page<br> this is block1 setting the variable this is block2 setting the variable <br>-- in between the blocks --<br> bottom of the test page<br> ------------------- now i know that using addblockfile() twice loads the block twice and therefor errors, but still even with addblock() both blocks get pushed into the same placeholder. anyone know what i can do? thanks -kevin -k

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