mirror of
				https://github.com/Icinga/icingaweb2.git
				synced 2025-11-04 05:05:01 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			607 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			607 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/* Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
 | 
						|
 | 
						|
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();
 | 
						|
    }
 | 
						|
 | 
						|
    public function announcementsAction()
 | 
						|
    {
 | 
						|
        $this->_helper->layout()->disableLayout();
 | 
						|
    }
 | 
						|
}
 |