找到会员目录,默认是member里面打开config.php加入函数
找到
require_once(DEDEINC.'/dedetemplate.class.php');
下面引入arc.partview.class.php
require_once(DEDEINC."/arc.partview.class.php");
引入后加入下面函数
function pasterTempletDiy($path)
{
global $cfg_basedir,$cfg_templets_skin;
$tmpfile = $cfg_basedir.$cfg_templets_skin."/".$path;//模版文件的路径
$dtp = new PartView();
$dtp->SetTemplet($tmpfile);
$dtp->Display();
}
QQ图片20201008165859
模板头部模板
<?php pasterTempletDiy("head.htm"); ?>
模板尾部模板
<?php pasterTempletDiy("footer.htm"); ?>