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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -