public function renderMegamenu() { $input = JFactory::getApplication()->input; $menutype = $input->get('menutype', 'mainmenu'); $megamenu = new Zo2Megamenu($menutype); $this->_ajax->addHtml($megamenu->renderMenu(true), '#zo2-admin-mm-container'); $this->_ajax->response(); }