Re: HTML_Template_Sigma problem
| From: | Markus Ernst | Date: | Fri, 13 Jan 2006 17:18:02 +0000 |
| Subject: | Re: HTML_Template_Sigma problem | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22523@lists.php.net to get a copy of this message | ||
Janis Anspaks schrieb:
Hello! i wanted to know way, how is possible to display older block before newer block... So, if i have template file like http://paste.php.lv/3132, so how can i display first block3 and then block1 ?You could try something like (not tested): // get Contents $tpl->parse("block1"); $content1 = $tpl->get("block1"); $tpl->parse("block2"); $content2 = $tpl->get("block2"); $tpl->parse("block3"); $content3 = $tpl->get("block3"); // replace blocks $tpl->replaceBlock("block1", $content3); $tpl->touchBlock("block1"); $tpl->replaceBlock("block2", $content1); $tpl->touchBlock("block2"); $tpl->replaceBlock("block3", $content2); $tpl->touchBlock("block3"); I'm not sure if it will work; but try it... -- Markus