[請益] smarty 標籤混合使用問題

看板PHP作者 (ChaN)時間14年前 (2011/06/17 12:02), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
{html_image file='images/x.png'} 這是 smarty 使用圖片的語法 假設今天是在一個 section 裡面 我想導入 section 的順序當作撈圖依據的話該怎麼結合 {html_images file='images/{$smarty.section.data.index+1}.png'} 這樣是不 work 的 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.36.28.161 ※ 編輯: chan15 來自: 114.36.28.161 (06/17 12:15)

06/17 12:33, , 1F
改雙引號就 ok 了…
06/17 12:33, 1F
文章代碼(AID): #1D-j78sW (PHP)
文章代碼(AID): #1D-j78sW (PHP)