Commit 1cce28f2 authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлены правки в класс модуля

parent 4c919a04
......@@ -5,13 +5,28 @@ namespace common\modules\cases;
/**
* Cases module definition class
*/
class Module extends \yii\base\Module
class Module extends \common\components\WebModule
{
/**
* @inheritdoc
*/
public $controllerNamespace = 'common\modules\cases\controllers';
public static $active = true;
public $menu_icons = 'fa fa-file-o';
public static function name()
{
return 'Управление кейсами';
}
public static function description()
{
return 'Управление кейсами';
}
/**
* @inheritdoc
*/
......@@ -21,4 +36,12 @@ class Module extends \yii\base\Module
// custom initialization code goes here
}
public static function adminMenu()
{
return array(
'Новый кейс' => '/cases/case-admin/create',
'Список кейсов' => '/cases/case-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