Concatenation in smarty

后端 未结 3 1341
醉梦人生
醉梦人生 2021-02-05 05:28

I want to assign the value obtained from the concatenation of these two variables with a string.

{assign var=\"url\" value=\"{$WS_PATH}aircraft_images/{$images[i         


        
3条回答
  •  醉梦人生
    2021-02-05 05:38

    such an expression will do the trick:

    {$product1_photo = "{$smarty.const.IMG_URL}/{$pInfo.PhotoName}"}
    

提交回复
热议问题