Jump to content

[SOLVED] Smarty Help


kickassamd

Recommended Posts

I have an array that looks like this

 

Array ( [0] => Array ( [name] => Account [submenu] => Array ( [0] => Array ( [name] => Create Account [link] => ) [1] => Array ( [name] => Manage Account [link] => ) [2] => Array ( [name] => Cancel Account [link] => ) ) ) )

 

And im trying to use it in smarty like so

 

<{foreach from=$ACMS_MENU item=menu}>
    <div class="sidebox">	
	<h1 class="clear"><{$menu.name}></h1>
		<ul class="sidemenu">
			<{foreach from=$ACMS_MENU.submenu item=subitem}>
                	<li><a href="<{$ACMS_URL}><{$subitem.link}>" class="top"><{$subitem.name}></a></li>
             	<{/foreach}>
		</ul>		
</div>
<{/foreach}>

 

So far no luck... Any ideas? The first foreach loop works, the second that prints the subitems does not.

Link to comment
https://forums.phpfreaks.com/topic/67598-solved-smarty-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.