Yii2-Wiki is a flexible implementation of a wiki for Yii2
The preferred way to install this extension is through composer.
Either run
$ composer require dmitxe/yii2-wiki-module
or add
"dmitxe/yii2-wiki-module": "dev-master"
to the require
section of your composer.json
file.
For the default table structure execute the provided migration as follows:
php yii migrate --migrationPath=@vendor/dmitxe/yii2-wiki-module/migrations
To remove the table just do the same migration downwards.
add the following entry to the modules-part of your config-file:
//...
'modules'=>[
'wiki'=>[
'class'=>'dmitxe\yii2\wiki\Module',
'editorRole'=>'administrator' // set false for quests
'editorLayout' => '//main'
],
],
//...