先推荐两篇phpcms的好文章:
PHPCMS_v9_使用指南及二次开发手册_2011年最新版
http://wenku.baidu.com/view/279b40c20c22590102029d98.html
实例手把手教你用PHPCMS做网站 秒杀菜鸟到大神
http://blog.163.com/jinrituijian_com/blog/static/207230108201251442053462/
1)引用:{template 'phpcms','header'}---当前页面引用phpcms文件夹内的header.html文件
2)编码:
所有文件格式都是utf-8
<tr>
<td><?php $id= iconv("UTF-8","gbk",$info['id']); echo $id ?></td>-----------正常,因为是int
<td><?php $name= iconv("UTF-8","UTF-8","错误信息"); echo $name ?></td>----------正常
<td><?php echo mb_detect_encoding($info['name'], array('ASCII','UTF-8','GB2312','GBK','BIG5','EUC-CN','CP936')); ?></td>----------utf-8
<td><?php $name= iconv("utf-8","gbk",$info['name']); echo $name ;?></td>---------正确,gbk包括繁体
<td><?php echo $info['name'] ?></td>--------乱码
</tr>