Skip to content
This repository has been archived by the owner on Mar 1, 2020. It is now read-only.

Latest commit

 

History

History
55 lines (45 loc) · 758 Bytes

install.md

File metadata and controls

55 lines (45 loc) · 758 Bytes

Установка

Устанавливаем зависимость:

composer require yii2module/yii2-offline

Создаем полномочие:

oOfflineManage

Объявляем common модуль:

return [
	'modules' => [
		// ...
		'offline' => [
			'class' => 'yii2module\offline\web\Module',
		],
		// ...
	],
];

Объявляем backend модуль:

return [
	'modules' => [
		// ...
		'offline' => [
			'class' => 'yii2module\offline\admin\Module',
			'as access' => Config::genAccess(PermissionEnum::OFFLINE_MANAGE),
		],
		// ...
	],
];

Объявляем console модуль:

return [
	'modules' => [
		// ...
		'offline' => 'yii2module\offline\console\Module',
		// ...
	],
];