Thanks
Doug P
function showinv() {
global $xoopsDB,$xoopsConfig;
$xoopsOption['template_main'] = 'user.html';
require_once XOOPS_ROOT_PATH.'/header.php';
require_once XOOPS_ROOT_PATH.'/class/template.php';
include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
$xoopsTpl = new XoopsTpl();
// more smarty assigns and appends
}
function whatever() {
global $xoopsDB;
require_once SMARTY_DIR.'Smarty.class.php';
$xoopsTpl = new Smarty;
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
$form = new XoopsThemeForm("", "userform", "index.php");
$form->assign($xoopsTpl);
}
$xoopsTpl->display('db:'.$xoopsOption['template_main']);
Fatal error: Call to undefined function: xoops_canupdatefromfile() in /var/www/html/xoops/html/class/smarty/plugins/resource.db.php on line 16