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

smarty的if else 使用,待

WBOY
WBOYOriginal
2016-06-13 10:05:521143browse

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不能分开写

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