📜  smarty 开关盒 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:18.997000             🧑  作者: Mango

代码示例1
{* 
    There is no switch in Smarty 
    Use if-statement, plugin or php instead
*}

{if $case1_as_condition}
   Case 1
{elseif $case2_as_condition}
   Case 2, etc
{else}
   Default
{/if}