日期:2014-05-17  浏览次数:22726 次

各位老师新年好,问个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" />这样写吗 这么写 调用不了