dedecms织梦会员中心页面调用程序模板head和footer

2025-08-04 0 5
找到会员目录,默认是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();
}
dedecms织梦会员中心页面调用程序模板head和footer
模板头部模板
<?php pasterTempletDiy(“head.htm”); ?>
模板尾部模板
<?php pasterTempletDiy(“footer.htm”); ?>
收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

版权声明:所有的源码、软件和资料,不得使用于非法商业用途,不得违反国家法律,一切关于该资源商业行为与本站无关。

免费cms模板 dedecms教程 dedecms织梦会员中心页面调用程序模板head和footer https://www.mianfeicms.com/1131.html

相关文章

发表评论
暂无评论