Home > Backend Development > PHP Tutorial > smarty的if else 使用,待

smarty的if else 使用,待

WBOY
Release: 2016-06-13 13:43:09
Original
853 people have browsed it

smarty的if else 使用,在线等待
{|if $status eq "1"|}


{|else if $status eq "2"|}


{|else|}


{|/if|}

这么写有什么错误么?
感谢之至!

------解决方案--------------------
 
 

这样简单点
------解决方案--------------------
{|if $status eq "1"|} 
 
 
{|elseif $status eq "2"|}
 
 
{|else|} 
 
 
{|/if|} 
smarty的elseif不能分开写

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