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