Don't like ads? PRO users don't see any ads ;-)
Guest

Zf custom menu with icons

By: dezinger on Aug 1st, 2012  |  syntax: PHP  |  size: 0.54 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.             $catalogmenu = $this->navigation()->findOneBy('key','catalog');
  3.             if($catalogmenu) echo $this->navigation()->extMenu()
  4.                                        ->resetOptions()
  5.                                        ->setWrapper('<em></em>','',0)
  6.                                        ->setDefaultPicPath('/upload/catalog_pic/',3)
  7.                                        ->setDefaultPicActivePath('/upload/catalog_pic_active/')
  8.                                        ->setPicField('pic')
  9.                                        ->setPicFieldActive('pic_active')
  10.                                        ->renderMenu($catalogmenu,array('ulClass' => 'categories'));
  11. ?>