{php}$patharray=array(); $actionarray=array(){/php} {if C('adminmenu')} {foreach C('adminmenu') $adminmenu} $adminmenu['name'],'url'=>$adminmenu['url']){/php} class="active open"{elseif in_array($controller,$adminmenu['id']) && $controller=='index'}{php}$patharray=array('name'=>$adminmenu['name'],'url'=>$adminmenu['url']){/php} class="active"{/if}> {echo $adminmenu['name']} {if $adminmenu['submenu']}

{foreach $adminmenu['submenu'] $submenu} $submenu['name'],'url'=>$submenu['url']){/php} class="active"{/if}> {echo $submenu['name']} {/foreach}

{/if} {/foreach} {/if}