Example #1
0
 /**
  * Generate html from items
  * 
  * @return string
  */
 private function generateItems()
 {
     $html = '';
     foreach ($this->items as $url => $title) {
         if (!$title) {
             $html .= $url;
         } else {
             $html .= $this->template->getItem($url, $title, $this->route == $url ? $this->template->getActiveClass() : null);
         }
     }
     return $html;
 }