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# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

sql - PostgreSQL automatically update row at specific date -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -