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

smarty section,该如何处理

WBOY
WBOYOriginal
2016-06-13 09:58:34924browse

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

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

更多内容请参考smarty手册。

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