Home  >  Article  >  Backend Development  >  smarty模板引擎里如何进行字符串动态拼接呢?

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

WBOY
WBOYOriginal
2016-06-23 13:59:421252browse


        


        

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


回复讨论(解决方案)

直接">不行吗


        


        


没看错 就是这么简单

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

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