Home > Backend Development > PHP Tutorial > thinkphp 步骤之间传递变量

thinkphp 步骤之间传递变量

WBOY
Release: 2016-06-13 12:30:54
Original
1000 people have browsed it

thinkphp 方法之间传递变量
初用面向对象  经常碰到这种情况 就是两个方法需要用到的数据一样 比喻我在一个方法里 从数据库里读取了一些数据 分配到模板里   然后我发现在同一个模块里的另一个方法也需要用到这些数据 或者其中的某一个变量 我就不知道 该怎么办了 求大湿说明白点哈 小弟菜鸟

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