dede自定義搜索頁共用head頭部
發表時間:2018-01-12 08:57?? 作者:銳尚?? 瀏覽:
次
模版中調用:
<?php pasterTempletDiy("default/head.htm");?>
和底部<?php pasterTempletDiy("default/footer.htm");?>
/include/extend.func.php最后邊增加
function pasterTempletDiy($path)
{
require_once(DEDEINC."/arc.partview.class.php");
global $cfg_basedir,$cfg_templets_dir;
$tmpfile = $cfg_basedir.$cfg_templets_dir."/".$path;//模版文件的路徑
$dtp = new PartView();
$dtp->SetTemplet($tmpfile);
$dtp->Display();
}
就可以調用出來欄目了