欢迎来到258分享网,纯净的网络源码分享基地!

258资源分享网

全部作品
全部作品
网站源码
微信源码
素材特效
源码插件
视频教程
建站学院
热门搜索: 织梦  农业种植  农业  安全设置  官方
258资源分享 > 建站学院 > 织梦教程 > dede会员中心模板head调用方法

推荐下载

HTML5响应式自适应网咯设计

2020-05-12   浏览:740

高端HTML5响应式企业通用网

2020-05-06   浏览:521

html5响应式外贸网站英文版

2020-05-08   浏览:510

HTML5自适应律师工作室类网

2020-04-04   浏览:504

HTML5影视传媒文化公司类网

2020-05-12   浏览:502

dede会员中心模板head调用方法

发布时间:2020-08-20  

//引入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();

}

dede在会员中心调用首页模板的head.htm,尾部模板footer.htm的极端方法

 

2.我们在dede会员中心的任意模板中引用 head.htm 和footer.htm 两个dede模板文件,例如在会员中心的模板index.htm引用具体代码如下:

 

//php脚本开始

//引用dede头部模板

<?php pasterTempletDiy("head.htm"); ?>

//引用dede尾部模板

<?php pasterTempletDiy("footer.htm"); ?>