bene82 Posted September 9, 2013 Share Posted September 9, 2013 I have these variables: $idben47 Smarty_Variable Object (3) ->value = "0.00" ->nocache = false ->scope = "Smarty root" $idben48 Smarty_Variable Object (3) ->value = "120.00" ->nocache = false ->scope = "Smarty root" $idben49 Smarty_Variable Object (3) ->value = "0.00" ->nocache = false ->scope = "Smarty root" How I can dynamically get these in my tpl file? In my tpl file I already have the $id_attribute variable (47,48,49 in this case). I'm trying to do something like this: Prezzo:{${'idben'|cat:$id_attribute[spam-filter] But the system don't get the variable... Normally if i use the number directly it works: Prezzo:{${'idben'|48[spam-filter] Thank you in advance Link to comment Share on other sites More sharing options...
Recommended Posts