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

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

WBOY
WBOYOriginal
2016-06-13 13:10:48759browse

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缓存文件里面输出部分是啥
Statement:
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