Commit d6ef4c86 authored by Shakarim Sapa's avatar Shakarim Sapa

- Дописан основной класс модуля

parent e5e87fc6
......@@ -5,13 +5,17 @@ namespace common\modules\analyticsSchool;
/**
* analyticsSchool module definition class
*/
class Module extends \yii\base\Module
class Module extends \common\components\WebModule
{
/**
* @inheritdoc
*/
public $controllerNamespace = 'common\modules\analyticsSchool\controllers';
public static $active = true;
public $menu_icons = 'fa fa-book';
/**
* @inheritdoc
*/
......@@ -21,4 +25,27 @@ class Module extends \yii\base\Module
// custom initialization code goes here
}
public static function name()
{
return 'Школа аналитики';
}
public static function description()
{
return 'Модуль "Школа аналитики"';
}
public static function version()
{
return '2.0';
}
public static function adminMenu()
{
return [
'Управление курсами' => '/analyticsSchool/courses-admin/manage',
];
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment