2014-05-14 13:24:20 +00:00
|
|
|
<?php namespace Backend\Controllers;
|
|
|
|
|
|
|
|
|
|
use BackendMenu;
|
|
|
|
|
use Backend\Classes\Controller;
|
|
|
|
|
use Backend\Widgets\ReportContainer;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Dashboard controller
|
|
|
|
|
*
|
|
|
|
|
* @package october\backend
|
|
|
|
|
* @author Alexey Bobkov, Samuel Georges
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
class Index extends Controller
|
|
|
|
|
{
|
2014-10-24 06:38:24 +00:00
|
|
|
use \Backend\Traits\InspectableContainer;
|
2014-05-14 13:24:20 +00:00
|
|
|
|
|
|
|
|
public $requiredPermissions = ['backend.access_dashboard'];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Constructor.
|
|
|
|
|
*/
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
parent::__construct();
|
|
|
|
|
|
|
|
|
|
BackendMenu::setContextOwner('October.Backend');
|
|
|
|
|
new ReportContainer($this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function index()
|
|
|
|
|
{
|
2014-10-15 08:53:44 +00:00
|
|
|
$this->pageTitle = 'backend::lang.dashboard.menu_label';
|
2014-05-14 13:24:20 +00:00
|
|
|
BackendMenu::setContextMainMenu('dashboard');
|
|
|
|
|
}
|
2014-10-10 21:26:57 +00:00
|
|
|
}
|