2017 © Pedro Peláez
 

yii2-extension yii2-multisite

image

nullref/yii2-multisite

  • Tuesday, May 15, 2018
  • by ZAYEC77
  • Repository
  • 7 Watchers
  • 2 Stars
  • 72 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Yii2 Multisite

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Module for multi site (WIP), (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist nullref/yii2-multisite "*"

or add, (*5)

"nullref/yii2-multisite": "*"

to the require section of your composer.json file., (*6)

Then You have run console command for install this module:, (*7)

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., (*8)

Please check this documentation section, (*9)

You need to add module to bootstrap list of application:, (*10)

//...
'bootstrap' => [
    'multisite',
    //...
    ],
//...

Using with admin module

You can use this module with modules: - Yii2 Admin. - Yii2 Full Admin., (*11)

Models overriding


'multisite' => [ 'class' => 'nullref\multisite\Module', 'classMap' => [ 'Site' => 'app\models\Site', 'SiteQuery' => 'app\models\SiteQuery', ], ],

The Versions

15/05 2018