Referring multi-dim arrays
| From: | Thomas Pilgaard Nielsen | Date: | Mon, 28 Oct 2002 08:57:20 +0000 |
| Subject: | Referring multi-dim arrays | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6250@lists.php.net to get a copy of this message | ||
Hiya,
suppose I wan't to do something along the lines of:
---
{foreach from=$MenuStructure[$CurrentMainMenu]["_submenu"][$CurrentSubMenu]._images item=item key=key}
...
{/foreach}
---
This produces a "Warning: Invalid argument supplied for foreach()". Are multi-dimensional arrays not allowed inside Smarty templates?
Thanks in advance,
Thomas