smarty模板引擎里如何进行字符串动态拼接呢?

WBOY
Release: 2016-06-23 13:59:42
Original
1283 people have browsed it


        


        

我想$value.seller_id 这个值是多少那么star_02  中的02就是多少,就是02是动态的,在模板里如何拼接呢?谢谢


回复讨论(解决方案)

直接">不行吗


        


        


没看错 就是这么简单

{$value.seller_id} 放在span class="star_02">里不行?  span class="star_{$value.seller_id} ">???

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