nullref / yii2-multisite
Installs: 169
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 8
Forks: 3
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- nullref/yii2-useful: >=0.0.4
- yiisoft/yii2: >=2.0.4
- yiisoft/yii2-jui: ^2.0
This package is auto-updated.
Last update: 2024-11-29 04:30:40 UTC
README
Module for multi site (WIP)
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist nullref/yii2-multisite "*"
or add
"nullref/yii2-multisite": "*"
to the require section of your composer.json
file.
Then You have run console command for install this module:
php yii module/install nullref/yii2-multisite
Pay attention that if you don't use our application template it needs to change config files structure to have ability run commands that show above.
Please check this documentation section
You need to add module to bootstrap list of application:
//... 'bootstrap' => [ 'multisite', //... ], //...
Using with admin module
You can use this module with modules:
Models overriding
'multisite' => [ 'class' => 'nullref\multisite\Module', 'classMap' => [ 'Site' => 'app\models\Site', 'SiteQuery' => 'app\models\SiteQuery', ], ],