主程序代码:require_once TG_ROOT.'./include/smarty.class.php';
require_once TG_ROOT.'./include/global.func.php';if ($a=="") {
message("访问无效!","index.php","2");
}在global.func.php中定义了函数:function message($info, $jumppath, $sec) {
$smarty->assign("message",$info);#此行是global.func.php中的第41行
$smarty->assign("url",$jumppath);
$smarty->assign("second",$sec);
    $smarty->display("$dfenstyle/message.htm","$info$jumppath");
exit;
}在运行主程序时,提示:
Fatal error: Call to a member function on a non-object in e:\wwwroot\iyahoo\wwwroot\include\global.func.php on line 41