Section with Array key and value
| From: | Andreas Kaiser | Date: | Mon, 01 Oct 2001 21:37:07 +0000 |
| Subject: | Section with Array key and value | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1590@lists.php.net to get a copy of this message | ||
Hi,
I have assigned an array to a template var.
$smarty->assign("Array",$array);
The array looks like:
$array["name"] = "foo";
$array["title"] = "bar";
$array["id"] = "1234";
In a section I want to have the key and the value from this array.
{section name=test loop=$Array}
???key??? --- ???val???
{/section}
The Output should looks like:
name --- foo
title --- bar
id --- 1234
Who must the ???key??? looks like?
Who must the ???val??? looks like?
Thanks!
Andreas