smarty section,该如何处理

WBOY
Release: 2016-06-13 09:58:34
Original
925 people have browsed it

smarty section
我想用section遍历一个我自定义类的数组 请问应该怎么操作呢

------解决方案--------------------
{section name=index loop=$数组}
{$数组[index]} 
{/section}

更多内容请参考smarty手册。

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