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