smarty里用什么表示回车,该怎么处理

WBOY
Release: 2016-06-13 13:52:49
Original
851 people have browsed it

smarty里用什么表示回车
在smarty里用什么表示回车

------解决方案--------------------
应该是不显示的,不知道你是怎么弄使得他显示了。
但有个方法你可以一试,就是传name的时候加一个br,也就是assign的时候,把
name => "
".$变量;
然后再模板页直接用
{{if $aa ne " "}}
{{$name}}
{{/if}}
应该可以

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!