icingaweb2/application/controllers/LayoutController.php

29 lines
607 B
PHP
Raw Permalink Normal View History

<?php
/* Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
2015-08-27 07:33:36 -04:00
namespace Icinga\Controllers;
use Icinga\Web\Controller\ActionController;
use Icinga\Web\Menu;
/**
* Create complex layout parts
*/
class LayoutController extends ActionController
{
/**
* Render the menu
*/
public function menuAction()
{
$this->setAutorefreshInterval(15);
$this->_helper->layout()->disableLayout();
$this->view->menuRenderer = (new Menu())->getRenderer();
}
2016-11-29 09:12:33 -05:00
public function announcementsAction()
{
$this->_helper->layout()->disableLayout();
}
}