I think only custom navigation partial can do this. Someone correct me if I'm wrong.
Regards, Saša Stamenković On Wed, Mar 17, 2010 at 1:24 PM, Enkhbilguun Erdenetsogt < enkhbilg...@beregu.com> wrote: > Hello Saša Stamenković, > > Thanks for your reply. However, your advise only generates for the A > element like <li><a class="css-class"></a></li>. Do you know how to insert > the css class name for the <li> element?. > > > > --- > Enkhbilguun Erdenetsogt > > > On Wed, Mar 17, 2010 at 5:05 PM, Саша Стаменковић <umpir...@gmail.com>wrote: > >> $itemArray[] = array( >> 'label' => $label, >> 'uri' => $uri, >> 'class' => 'css-class' >> ); >> >> Regards, >> Saša Stamenković >> >> >> >> On Wed, Mar 17, 2010 at 7:36 AM, Enkhbilguun Erdenetsogt < >> enkhbilg...@beregu.com> wrote: >> >>> Hello, >>> >>> I'm generating my menu with Zend_Navigation. I would like to give a class >>> name 'last' for the last unordered list's list element as shown below: >>> >>> <ul> >>> <li>Element 1</li> >>> <li class="last">Element 2</li> >>> </ul> >>> >>> >>> The Zend Container generator looks like: >>> =============================== >>> foreach ($menuItems as $item) { >>> $label = $item->label; >>> if (!empty($item->link)) { >>> $uri = $item->link; >>> } else { >>> $page = new >>> LEAFCMS_Content_Item_Page($item->page_id); >>> $uri = '/page/open/title/' . $page->name; >>> } >>> $itemArray[] = array( >>> 'label' => $label, >>> 'uri' => $uri >>> ); >>> } >>> $container = new Zend_Navigation($itemArray); >>> $this->view->navigation()->setContainer($container); >>> $this->view->navigation()->menu()->setUlClass('sidebar_menu'); >>> >>> >>> Please advise me. :-) >>> >>> >>> >>> ---- >>> Sincerely, >>> Enkhbilguun Erdenetsogt >>> >> >> >