mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
36 lines
707 B
PHP
36 lines
707 B
PHP
<?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
|
|
{
|
|
|
|
public $requiredPermissions = ['backend.access_dashboard'];
|
|
|
|
/**
|
|
* Constructor.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
BackendMenu::setContextOwner('October.Backend');
|
|
new ReportContainer($this);
|
|
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$this->pageTitle = trans('backend::lang.dashboard.menu_label');
|
|
BackendMenu::setContextMainMenu('dashboard');
|
|
}
|
|
} |