-
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();
-
}
-
<?php
-
pasterTempletDiy("default/head.htm");
-
?>