Home > Backend Development > PHP Tutorial > smarty?section循环报错

smarty?section循环报错

WBOY
Release: 2016-06-13 12:22:03
Original
951 people have browsed it

smarty?section循环出错

<br />......<br /><{section name=s loop=$tips_infos}><br />......<br /><p><{$smarty.section.index}></p>   <br />//输出当前循环次数(这里次数没输出,还报错了,不知为啥)<br /><{if $tips_infos[s].system ne '1'  && ($index=1 || $index=2 ||$index=3 ||$index=4 ||$index=9 ||$index=10 ||$index=11)}><br />//$index=循环次数     $tips_infos[s].system ='1' 并且循环次数为1,2,3,4,9,10,11条件才成立  (因为循环次数出错,不知道这里会不会出问题)<br /><{/section}><br />......<br />
Copy after login

------解决思路----------------------
传入的数据是什么?

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