4
Hmmm ...
You could try my trick for quick-and-dirty templating:
.php file:
...
$xoopsOption['template_main'] = 'modname_filename.html';
include XOOPS_ROOT_PATH.'/header.php';
// Quick & dirty way of using Smarty templates for all output: collect all output into a buffer,
// then assign the buffer to a template variable.
ob_start();
... do output here ...
$output_buffer = ob_get_contents();
ob_end_clean();
$xoopsTpl->assign('output_buffer', $output_buffer);
include XOOPS_ROOT_PATH.'/footer.php';
...
.html file (template):
<{$output_buffer}>
<{include file="db:system_notification_select.html"}>
(Nothing else is needed in the template.)
xoops_version.php:
...
$modversion['templates'][1]['file'] = 'modname_filename.html';
$modversion['templates'][1]['description'] = 'Blah blah blah';
...