HTML_Template_Sigma and nested blocks
| From: | Jon Wood | Date: | Sun, 01 Aug 2004 03:51:33 +0000 |
| Subject: | HTML_Template_Sigma and nested blocks | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-13928@lists.php.net to get a copy of this message | ||
I'm trying to use HTML_Template_Sigma with a block like this:
<!-- BEGIN submenu -->
<div id="submenu">
<ul>
<!-- BEGIN admin -->
<li><em><a href="{base_href}admin/addpage">Add
Page</a></em></li>
<!-- END admin -->
</ul>
</div>
<!-- END submenu -->
And then doing:
if ($admin) {
$tpl->touchBlock('admin');
$tpl->hideBlock('submenu');
}
But the hideBlock call returns an error saying that the block couldn't
be found. Am I doing something wrong, or is this not supported?
Jon