How to concatenate a variable to a string in smarty? -


मैंने चतुर कोड का पालन किया है:

  {foreach = $ preview_data key = key आइटम = मान}  

मैं एक इकाइयों _ स्ट्रिंग को वैरिएबल $ की में समाहित मान को जोड़ना चाहता हूं। मैं कोड के ऊपर की कोशिश की लेकिन यह काम नहीं किया। यह कैसे प्राप्त करें?

$ की सिर्फ एक चर है, एक ही वाक्यविन्यास का उपयोग करें:

  & lt; input type = "hidden" class = "form-control" name = "units _ {$ key}" id = "यूनिट _ {$ key}" value = "{$ value.units}" & gt ;  

Comments

Popular posts from this blog

c++ - Cmake produces file extensions in static library archives -

c# - Roxy file manager in MVC doesn't accept session path -

c# - XML - Serialize class - Some questions -