-1
這是怎麼可能的?Smarty if - if語句中的鏈接變量
這是不是一個問題:
{if $date.today.start eq $filter.selected} selected="selected" {/if}
但我不知道這怎麼可能? (在if語句中鏈接變量)
{if {$date.today.start}|{$date.today.end} eq $filter.selected} selected="selected" {/if}
這引發了一個語法錯誤。
那麼怎麼可能,我可以用一個 「管」 和另一個變量$date.today.end
結合
$date.today.start
:
{$date.today.start}|{$date.today.end}
在if語句
?