Round Porch
unread,Jan 9, 2009, 12:39:33 PM1/9/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Smarty Discussion
Hello,
I'm wondering if there is a way/workaround to get array keys with a :
in them to display on a template
$test = array(
'content:encoding' => 'utf-8',
'somethingelse' => 'test'
);
$smarty->assign('test', $test);
$smarty->display('test.tpl');
In the template I have
{$test['content:encoding']}
That and {$test.content:encoding} throw the same error Fatal error:
Smarty error: [in test.tpl line 5]: syntax error: unrecognized tag:
$test['content:encoding'] (Smarty_Compiler.class.php, line 446) in /
usr/share/php/smarty/libs/Smarty.class.php on line 1092
This is 2.6.19
Thanks,
Dustin