From 44dfaf8864fd5fea61b9c2c49381ff29b100c15c Mon Sep 17 00:00:00 2001 From: Yarik Date: Mon, 29 May 2017 19:06:14 +0300 Subject: [PATCH] Artbox great prepairings --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index b493584..61a2701 100755 --- a/README.md +++ b/README.md @@ -11,6 +11,30 @@ To prepare your application you should run migrations: php yii migrate --migationPath=vendor/artweb/artbox-webcomment/migrations +To use comment system with customers you need to run additional migration: + + php yii migrate --migationPath=vendor/artweb/artbox-webcomment/order-to-comment/migrations + +You also need to register artbox-comment module in your application: + + modules => [ + ... + 'artbox-comment' => [ + 'class' => 'artbox\webcomment\Module', + ... + ], + ... + ] + +Available additional configurations: + +* enableRating - рейтинг на комментарие (default true) +* enablePremoderate - премодерация комментариев (default true) +* userIdentityClass - класс клиента (default \Yii::$app->user->identity) +* commentModelClass - класс комментария (default artweb\webcomment\models\CommentModel) +* ratingModelClass - класс рейтинга (default artweb\webcomment\models\RatingModel) + + DIRECTORY STRUCTURE ------------------- -- libgit2 0.21.4