Code: Select all
else {
debug_buffer('process template top');
$tpl_id = $contentobj->TemplateId();
$top = $body = $head = null;
\CMSMS\HookManager::do_hook('Core::PageTopPreRender', [ 'content'=>&$contentobj, 'html'=>&$top ]);
echo "test -1<br>";
$tpl = $smarty->createTemplate('tpl_top:'.$tpl_id,$cache_id);
[color=#BF0040]echo "test 0<br>";[/color]
$top .= $tpl->fetch();
echo "test1<br>";
unset($tpl);
echo "test2<br>";
\CMSMS\HookManager::do_hook('Core::PageTopPostRender', [ 'content'=>&$contentobj, 'html'=>&$top ]);
echo "test3<br>";
// if the request has a mact in it, process and cache the output.
preprocess_mact($contentobj->Id());
How can I troubleshoot this?