首页 > Web开发 > 详细

phpcms 02

时间:2015-03-17 15:37:48      阅读:314      评论:0      收藏:0      [点我收藏+]

头部和尾部包含

1 默认的首页模板
C:\wamp\www\phpcms\templates\ypzy2014\content\index.html
打开模板查看
第一句
{template "content","header"}
最后一句
{template "content","footer"}

测试:
{template "yulinfeng","header_yulinfeng"} 引入OK
修改头部的引入文件成功
步骤:
在content的同级目录下新建一个文件夹和一个头部文件,并在index.html中引入


效果:怎么修改头部和尾部文件


细节:
如果我把header_yulinfeng.html 改掉,
注意:我改的是
C:\wamp\www\phpcms\templates\ypzy2014\yulinfeng
那么会提示
templates\default\yulinfeng\header_yulinfeng.html is not exists!
说明它是先找ypzy2014,再找default

phpcms 02

原文:http://www.cnblogs.com/backfish/p/4344388.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!