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 asinfotrack/yii2-wiki
or add
"asinfotrack/yii2-wiki": "dev-master"
to the require
section of your composer.json
file.
For the default table structure execute the provided migration as follows:
yii migrate --migrationPath=@vendor/asinfotrack/yii2-wiki/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'=>'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.
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:
//...
'bootstrap'=>['log', 'wiki'],
//...
No stable releases.
Comments