Home > Backend Development > PHP Tutorial > smarty section,该如何处理

smarty section,该如何处理

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 09:58:34
Original
966 people have browsed it

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

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

更多内容请参考smarty手册。

Related labels:
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
Latest Issues
In which section do you select all?
From 1970-01-01 08:00:00
0
0
0
What is section used in this way?
From 1970-01-01 08:00:00
0
0
0
The else section cannot be deleted.
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template