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

WBOY
Release: 2016-06-13 13:47:48
Original
776 people have browsed it

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

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

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

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

------解决方案--------------------
我也是菜鸟 你head里面 用 global定义变量难道不行吗?
------解决方案--------------------

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


这样写吗 这么写 调用不了
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!