Posted by "Cal Henderson" on 06/02/05 08:02
Matt Warden wrote:
: $smarty->assign('myArrayCount',
count($smarty->get('myArrayCount')));
i assume you wanted the count of myArray?
if you mean you want to fetch back an already assign'd
template variable then:
$smarty->assign('myArrayCount',
count($smarty->get_template_vars('myArray')));
but really, it's very easy in smarty itself:
{$myArray|@count}
--cal
Navigation:
[Reply to this message]
|