Download the PHP package brezgalov/yii2-modules without Composer
On this page you can find all versions of the php package brezgalov/yii2-modules. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-modules
- Создать папку /modules/<Имя модуля>
- Создать Module.php внутри папки вида:
namespace app\modules\<Имя модуля>; use yii\base\BootstrapInterface; class Module extends \brezgalov\modules\Module implements BootstrapInterface { /** * @var string */ public $id = '<Имя модуля>'; }
- Создаем файл /modules/<Имя модуля>/config/urlManager.php, куда кладем роуты
- Прописываем <Имя модуля> в /config/modules в виде:
'<Имя модуля>' => [ 'class' => 'app\modules\<Имя модуля>\Module', ],
- Прописываем имя модуля в массив в файле /config/bootstrap.php
All versions of yii2-modules with dependencies
PHP Build Version
Package Version
No informations.
The package brezgalov/yii2-modules contains the following files
Loading the files please wait ....