Skip to content

cybernic/yii2-multisite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Multisite

Latest Stable Version Total Downloads Latest Unstable Version License

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

and module will be added to your application config (@app/config/installed_modules.php)

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',
        ],
    ],

Also you have to add module to bootstrap list of application:

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.3%
  • Makefile 0.7%