打开"/include/common.func.php",该文件5.6/5.7版本默认存在,5.5的不存在自己建一个。
//留言板或其它自定义页面调用模板的方法
if (!function_exists('pasterTempletDiy'))
{
function pasterTempletDiy($path)
{
require_once(DEDEINC."/arc.partview.class.php");
global $cfg_basedir,$cfg_templets_dir,$cfg_df_style;
$tmpfile = $cfg_basedir.$cfg_templets_dir."/".$cfg_df_style."/".$path;//模版文件的路径
$dtp = new PartView();
$dtp->SetTemplet($tmpfile);
$dtp->Display();
}
}