1
Hello!
I've been digging around the forums for a while now trying to find out on how to bring up the admin of modules into templates instead of having html tags hardcoded and shown through tonnes of "echos"...
Does anyone know how to use templates in the admin or are there any links available?
So far I have from my form the templates defined in xoops_version.php, I have already creted the template such as
<{foreach from=$myForm.elements item=element}>
<{/foreach}>
in the admin file I call the form using
echo $tpl->fetch(XOOPS_ROOT_PATH.'/modules/mymodule/templates/my_template.html');
and the form is associated with the template as follows
$myForm->display();
I tried using
$myFomr->assign($xoopsTpl);
but I get an error stating problems when trying to access the tpl file
Any ideias, directions?
thanks