2014-02-05 12:35:44 +01:00
|
|
|
<?php
|
2015-02-04 10:46:36 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
2014-02-05 12:35:44 +01:00
|
|
|
|
2015-08-27 13:33:36 +02:00
|
|
|
namespace Icinga\Controllers;
|
|
|
|
|
2015-09-04 10:53:01 +02:00
|
|
|
use Icinga\Application\Icinga;
|
2014-02-05 12:35:44 +01:00
|
|
|
use Icinga\Web\Controller\ActionController;
|
|
|
|
|
2014-02-11 16:21:36 +01:00
|
|
|
/**
|
|
|
|
* Create complex layout parts
|
|
|
|
*/
|
2014-02-05 12:35:44 +01:00
|
|
|
class LayoutController extends ActionController
|
|
|
|
{
|
2014-02-11 16:21:36 +01:00
|
|
|
/**
|
|
|
|
* Render the menu
|
|
|
|
*/
|
2014-02-05 12:35:44 +01:00
|
|
|
public function menuAction()
|
|
|
|
{
|
2014-09-08 15:21:14 +02:00
|
|
|
$this->setAutorefreshInterval(15);
|
2014-08-22 11:10:17 +02:00
|
|
|
$this->_helper->layout()->disableLayout();
|
2015-09-04 10:53:01 +02:00
|
|
|
$this->view->menuRenderer = Icinga::app()->getMenu()->getRenderer();
|
2014-02-05 12:35:44 +01:00
|
|
|
}
|
|
|
|
}
|