本站资源均来自互联网,仅供学习与参考,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
Copyright @ 2015-2020 织梦园 版权所有
Power by DedeCms
鲁ICP备15039853号-1
鲁公网安备 37132302000249号
模板标签 TAG标签 网站地图 XML地图 今日更新 返回顶部
首先我们讲会员中心的..
//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();
}
2.我们在dede会员中心的任意模板中引用 head.htm 和footer.htm 两个dede模板文件,例如在会员中心的模板index.htm引用具体代码如下:
//php脚本开始
//引用dede头部模板
<?php pasterTempletDiy("head.htm"); ?>
//引用dede尾部模板
<?php pasterTempletDiy("footer.htm"); ?>