mirror of
https://github.com/avecms/AVE.cms.git
synced 2026-08-01 08:45:44 +00:00
50 lines
1.4 KiB
PHP
50 lines
1.4 KiB
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------------------
|
|
| AVE.cms
|
|
|--------------------------------------------------------------------------------------
|
|
| @package AVE.cms
|
|
| @file adminx/modules/Dashboard/module.php
|
|
| @author AVE.cms <support@ave-cms.ru>
|
|
| @copyright 2007-2026 (c) AVE.cms
|
|
| @link https://ave-cms.ru
|
|
| @version 3.3
|
|
*/
|
|
|
|
defined('BASEPATH') || die('Direct access to this location is not allowed.');
|
|
|
|
/**
|
|
* Модуль Dashboard — пилотный CRUD-каркас: главная страница + пункт меню.
|
|
* Декларативный дескриптор (modules.md §1); регистрацию делает ModuleManager.
|
|
*/
|
|
return [
|
|
'code' => 'dashboard',
|
|
'name' => 'Дашборд',
|
|
'version' => '0.1.0',
|
|
|
|
'navigation' => array(
|
|
array(
|
|
'code' => 'dashboard',
|
|
'label' => 'Дашборд',
|
|
'url' => '/dashboard',
|
|
'icon' => 'ti ti-layout-dashboard',
|
|
'permission' => '',
|
|
'group' => 'Обзор',
|
|
'sort_order' => 10,
|
|
'match' => array(
|
|
'/dashboard',
|
|
),
|
|
),
|
|
),
|
|
|
|
'routes' => array(
|
|
array('GET', '/', array(\App\Adminx\Dashboard\Controller::class, 'index')),
|
|
array('GET', '/dashboard', array(\App\Adminx\Dashboard\Controller::class, 'index')),
|
|
),
|
|
|
|
'view_globals' => [
|
|
'module_code' => 'dashboard',
|
|
],
|
|
];
|