POST TIME:2017-11-12 23:50
在/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(); }
模版中調(diào)用: <?php pasterTempletDiy("default/head.htm");?> 和底部<?php pasterTempletDiy("default/footer.htm");?>