Home >Backend Development >PHP Tutorial >麻烦帮小弟我解决下,为什么在用Smarty3.15时{% $content %}不能替换

麻烦帮小弟我解决下,为什么在用Smarty3.15时{% $content %}不能替换

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

麻烦帮我解决下,为什么在用Smarty3.15时{% $content %}不能替换?
但是我用Smarty2.19时{% $content %}能替换成我要的内容。。。

------解决方案--------------------
smarty3以后对空格敏感,你把
{% $content %}
写成(%前后的空格删除)
{%$content%}

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