Re: HTML_IT doesn't parse

From: Date: Tue, 03 Jun 2003 18:03:23 +0000
Subject: Re: HTML_IT doesn't parse
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5766@lists.php.net to get a copy of this message
Hi! Martin Marques wrote:
This isn't working, at least how it should. I have an empty block inside a nonempty block, and I want to parse this empty block a few times for the first parse of the non-empty block. The problem is that every time I parse the block (the one that includes this empty block) it parses the non-empty too. This is not the desired behavior.
If I understood you correctly, you want to iterate over the inner empty block a few times and only then parse the outer non-empty block? You'll have to do something like this: for ($i = 0; $i < $count; $i++) {
    $tpl->touchBlock('empty_block');
    $tpl->parse('empty_block');
} $tpl->parse('not_empty_block');

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