Commit 44dfaf8864fd5fea61b9c2c49381ff29b100c15c

Authored by Yarik
1 parent fd5e93c2

Artbox great prepairings

Showing 1 changed file with 24 additions and 0 deletions   Show diff stats
README.md
... ... @@ -11,6 +11,30 @@ To prepare your application you should run migrations:
11 11  
12 12 php yii migrate --migationPath=vendor/artweb/artbox-webcomment/migrations
13 13  
  14 +To use comment system with customers you need to run additional migration:
  15 +
  16 + php yii migrate --migationPath=vendor/artweb/artbox-webcomment/order-to-comment/migrations
  17 +
  18 +You also need to register artbox-comment module in your application:
  19 +
  20 + modules => [
  21 + ...
  22 + 'artbox-comment' => [
  23 + 'class' => 'artbox\webcomment\Module',
  24 + ...
  25 + ],
  26 + ...
  27 + ]
  28 +
  29 +Available additional configurations:
  30 +
  31 +* enableRating - рейтинг на комментарие (default true)
  32 +* enablePremoderate - премодерация комментариев (default true)
  33 +* userIdentityClass - класс клиента (default \Yii::$app->user->identity)
  34 +* commentModelClass - класс комментария (default artweb\webcomment\models\CommentModel)
  35 +* ratingModelClass - класс рейтинга (default artweb\webcomment\models\RatingModel)
  36 +
  37 +
14 38 DIRECTORY STRUCTURE
15 39 -------------------
16 40  
... ...