Home  >  Article  >  Backend Development  >  Simple code example of dedecms template call parsing

Simple code example of dedecms template call parsing

黄舟
黄舟Original
2017-04-01 09:19:131906browse

This article mainly introduces the simplest code for dedecms template calling and parsing. Friends who need it can refer to it

dedecms template download address: www.php.cn/xiazai/code/dedecms

<?php    
require_once (dirname(FILE) . "/include/common.inc.php");   
require_once DEDEINC."/arc.partview.class.php";   
$pv = new PartView(); //实例化 
$pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $cfg_wap_style . &#39;/index.htm&#39;); //模板的路径 
$pv->Display(); //显示     
?>



##

The above is the detailed content of Simple code example of dedecms template call parsing. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn