一个PHP模板主要想体现一下思路
思路: 欲在速度和易用(主要指的是美工设计的方便性)之间取得一个平衡点.于是采用了由html文件生成php文件的办法(编译?) 也想在分离显示逻辑和分离html代码之间平衡一下 例如一个论坛首页(index.php): 代码: <?php require(‘./template.php’); //由html生成的php文件的前缀,区别使用多种风格. $tpl_prefix = ‘default’; //模板文件名 $tpl_index = ‘index’; $tpl = new Template($tpl_prefix); $cats = array( array(‘f
下载地址
用户评论