<?
{foreach from=$config_tmp item='item' key='key'}
{if is_array($item)}
{foreach from=$item item='subitem'}
$config['{$key|escape:"quotes"}'][]='{$subitem|escape:"quotes"}';
{/foreach}
{else}
$config['{$key|escape:"quotes"}']='{$item|escape:"quotes"}';
{/if}
{/foreach}