I do not understand how to assign the correct name here with Smarty.
If I try to do so it does not get recognized:
$smarty->assign('lang[\'city\']', $lang['city']);
It does not assign anything…
Can you help me out?
$lang is an associative array, like $lang = array('city'=>'Here', 'name'=>'Steve');
According to smarty documentation you should use:
And in template: