0
我試圖生成以下數組網址在智者3.列表,以便爲每個循環,我需要輸出的[標籤]和[URL]Smarty的部分循環數組
目前我有:
{section name="foo" loop=$list.options}
{if $list.options[foo] != "names"}
{$list.options[foo].label}
{$list.options[foo].url}
{/if}
{/section}
這只是輸出空行,所以它只是沒有文本的一半工作。
[list] => Array (
[type] => Table
[name] => list
[options] => Array (
[names] => Array (
[0] => id
[1] => name
[2] => url
[3] => picture
[4] => featured
)
[id] => Array (
[enabled] => 1
[label] => Id
[url] => /admin/list/desc
)
[name] => Array (
[enabled] => 0
[label] => Name
[url] => /admin/list/desc
)
[url] => Array (
[enabled] => 0
[label] => Uri
[url] => /admin/list/desc
)
[picture] => Array (
[enabled] => 0
[label] => pciture
[url] => /admin/list/desc
)
[featured] => Array (
[enabled] => 0
[label] => Featured
[url] => /admin/content/list/desc
)
)
)