4
i meant, is there an easy way to do it like in the module (user side)? i've looked though a lot of other modules and their admin side files all mix php with html than just using smarty.
my point was when/if the admin-side will be using smarty by default. afaik, i have to start including every smarty piece than letting the XOOPS core do it for me.
ex:
...
default: // show list
$xoopsTpl =& new XoopsTpl();
$xoopsOption['template_main'] = 'site_admin/index.tpl';
$xoopsTpl->display(XOOPS_ROOT_PATH.'/modules/mymod/templates/site_admin/index.tpl');
...
gives me an error
Fatal error: Call to undefined function: () in d:domainssomedomain.orgpublic_htmlclasssmartySmarty.class.php on line 1658
[edit]
Wow. that was easier than i thought; didn't know i can still call the 'db:' argument in the $xoopsTpl->display. for anyone else that's interested, this is all you need in the admin file
include(XOOPS_ROOT_PATH.'/class/template.php');
$xoopsTpl = &new XoopsTpl();
$xoopsTpl->display('db:site_admin/formwiz_admin_index.tpl');