well, i assign this array (this array is for language) to tpl:
$arrayLang = array (
"id" => "ID",
"name" => "Nombre",
"active" => "Activo"
);
$tpl->assign('LANG' => $arrayLang);
and i assign other array from a query to the database, this query fetch an array similar to:
$arrayQuery = array (
0 => "id",
1 => "name",
2 => "active"
);
$tpl->assign('DATA' => $arrayQuery);
and i need to print the value from $arrayLang by key (this from $arrayQuery), so i use a loop:
<ul>
{loop name="$DATA"}
<li>{$LANG.$value}</li>
{/loop}
</ul>
but this code print empty, i have tried with {$LANG[$value]} for same result. So, how can i do it?
Thanks in advance.