phpcms 02

头部和尾部包含

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

转载于:https://www.cnblogs.com/backfish/p/4344388.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值