dev-master
9999999-devYii2-Wiki is a flexible implementation of a wiki for Yii2
MIT
The Requires
yii2 module wiki
Yii2-Wiki is a flexible implementation of a wiki for Yii2
Yii2-Wiki is a flexible implementation of a wiki for Yii2, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
$ composer require asinfotrack/yii2-wiki
or add, (*4)
"asinfotrack/yii2-wiki": "dev-master"
to the require
section of your composer.json
file., (*5)
For the default table structure execute the provided migration as follows:, (*6)
yii migrate --migrationPath=@vendor/asinfotrack/yii2-wiki/migrations
To remove the table just do the same migration downwards., (*7)
add the following entry to the modules-part of your config-file:, (*8)
//... 'modules'=>[ 'wiki'=>[ 'class'=>'asinfotrack\yii2\wiki\Module', 'processContentCallback'=>function($content) { //example if you want to use markdown in your wiki return Parsedown::instance()->parse($content); } ], ], //...
For a full list of possible options check out the well documented attributes of the module-class., (*9)
This step is only necessary if you want to use the deafault url-rules provided by the module.
If you want to use this feature, add the module-id to the bootstrap-array of your config file:, (*10)
//... 'bootstrap'=>['log', 'wiki'], //...
Yii2-Wiki is a flexible implementation of a wiki for Yii2
MIT
yii2 module wiki