Home > Backend Development > PHP Tutorial > thinkphp3.1如何不能完全输出变量

thinkphp3.1如何不能完全输出变量

WBOY
Release: 2016-06-13 13:10:48
Original
822 people have browsed it

thinkphp3.1怎么不能完全输出变量?
我的控制器文件:

  $this->assign('aa','hello world');
  $this->display();


我的模版文件:



 

  {$aa}
 

  {$aa}
 

  {$aa}



最后输出的结果竟然是

{$aa}
hello world
hello world

实在想不通 要不它就全都输出{$aa} 要不就全都输出hello world 怎么会第一个输出{$aa} 后面的输出hello world



------解决方案--------------------
既如此,那就放弃残废的tp呀!
你又不是慈善机构
------解决方案--------------------
你看一下解析后的php缓存文件里面输出部分是啥
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