读书人

各位老师新年好问个thinkphp有关问题

发布时间: 2012-03-11 18:15:39 作者: rapoo

各位老师新年好,问个thinkphp问题
现在我有一个控制器indexAction.class.php 控制器下有 index()方法 header()方法 footer()方法

其中header()方法中有几个变量

index()方法的模板要引用 header() 用普通的include 变量是传不过来的

求老师和童鞋们 帮助 如何让变量传过来 此致 敬礼

[解决办法]
我也是菜鸟 你head里面 用 global定义变量难道不行吗?
[解决办法]

探讨
引用:
__APP__/index/header
现在我也在用thinkphp做项目,有时间可以交流一下,http://www.wodeblog.com


<include file="__APP__/index/header" />这样写吗 这么写 调用不了

读书人网 >PHP

热点推荐