Exemplo n.º 1
0
 /**
  * If the current menu item holds a submenu, we recursively build again a
  * new menu group.
  *
  * @param array|null $group Current item's submenus array.
  * @return string rendered menu content
  */
 public function render($group = null)
 {
     $this->config('content.url', Router::url($this->config('content.url')));
     $content = $this->formatTemplate('content', $this->config('content'));
     if ($group) {
         $this->config(array_shift($this->_config['childConfig']));
         $menu = new MenuGroup([$this->config()], $this->_here);
         $content .= $menu->render($group);
         $this->_active = $this->_active || $menu->active();
     }
     return $content;
 }