Assign array variable in smarty template

How to assign array values in smarty tpl file
Ex. [{assign var=‘test’ value=[‘test’ => ‘1’, ‘text’=>‘2’]}]

Can you please give me solution.

Thanks in advance.

for assoc array you will have to use json_decode

Hi @mohana,

OXID use Smarty v2. There is no standard solutions to solve your problem. If you could do it in PHP directly, it would be the better way.

In the german Forum @leofonic discribe a dirty solution: Smarty "append" Funktion nicht verfügbar?