打开 `/member/config.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();
}
<?php pasterTempletDiy("head.htm"); ?>
<?php pasterTempletDiy("footer.htm"); ?>
以下是具体的代码实现:
// 引入arc.partview.class.php类处理
require_once(DEDEINC."/arc.partview.class.php");
function pasterTempletDiy2($path)
{
global $cfg_basedir, $cfg_templets_skin;
$tmpfile = $cfg_basedir . $cfg_templets_skin . "/" . $path; // 模版文件的路径
$dtp = new PartView();
$dtp->SetTemplet($tmpfile);
$dtp->Display();
}
<?php pasterTempletDiy2("head.htm"); ?>
<?php pasterTempletDiy2("footer.htm"); ?>