Commit 16969a19a777d0bdc4971b336c39cbee1aa87a0e
1 parent
9f3f9a44
26.05.16 change image download (git strange error, pay attention for this)
Showing
2 changed files
with
24 additions
and
23 deletions
Show diff stats
common/config/main.php
@@ -310,6 +310,7 @@ return [ | @@ -310,6 +310,7 @@ return [ | ||
310 | ], | 310 | ], |
311 | 'comment' => [ | 311 | 'comment' => [ |
312 | 'class' => 'common\modules\comment\Module', | 312 | 'class' => 'common\modules\comment\Module', |
313 | + '', | ||
313 | 'useRbac' => true, | 314 | 'useRbac' => true, |
314 | 'rbac' => [ | 315 | 'rbac' => [ |
315 | 'rules' => [ | 316 | 'rules' => [ |
frontend/views/event/view.php
@@ -21,29 +21,29 @@ $this->params['name'] = $this->title; | @@ -21,29 +21,29 @@ $this->params['name'] = $this->title; | ||
21 | <?= $model->body?> | 21 | <?= $model->body?> |
22 | </div> | 22 | </div> |
23 | <?php | 23 | <?php |
24 | - echo \common\modules\comment\widgets\CommentWidget::widget([ | ||
25 | - 'context' => $this, | ||
26 | - 'model' => $model->className(), | ||
27 | - 'model_id' => $model->event_id, | ||
28 | - 'comment_class' => \common\modules\comment\models\Comment::className(), | ||
29 | - 'rating_class' => \common\modules\comment\models\Rating::className(), | ||
30 | - 'class_options' => [ | ||
31 | - 'scenario' => is_int(\Yii::$app->user->getId()) ? \common\modules\comment\models\Comment::SCENARIO_USER : \common\modules\comment\models\Comment::SCENARIO_GUEST, | ||
32 | - 'user_id' => \Yii::$app->user->getId(), | ||
33 | - 'guestComment' => true, | ||
34 | - 'status' => \common\modules\comment\models\Comment::STATUS_ACTIVE, | ||
35 | - ], | ||
36 | - 'list_options' => [ | ||
37 | - 'view' => 'list-comment-review', | ||
38 | - ], | ||
39 | - 'form_options' => [ | ||
40 | - 'view' => 'form-comment-review', | ||
41 | - 'tag' => 'span', | ||
42 | - ], | ||
43 | - 'options' => [ | ||
44 | - 'class' => 'proektant-comments-wr style', | ||
45 | - ], | ||
46 | - ]); | 24 | +// echo \common\modules\comment\widgets\CommentWidget::widget([ |
25 | +// 'context' => $this, | ||
26 | +// 'model' => $model->className(), | ||
27 | +// 'model_id' => $model->event_id, | ||
28 | +// 'comment_class' => \common\modules\comment\models\Comment::className(), | ||
29 | +// 'rating_class' => \common\modules\comment\models\Rating::className(), | ||
30 | +// 'class_options' => [ | ||
31 | +// 'scenario' => is_int(\Yii::$app->user->getId()) ? \common\modules\comment\models\Comment::SCENARIO_USER : \common\modules\comment\models\Comment::SCENARIO_GUEST, | ||
32 | +// 'user_id' => \Yii::$app->user->getId(), | ||
33 | +// 'guestComment' => true, | ||
34 | +// 'status' => \common\modules\comment\models\Comment::STATUS_ACTIVE, | ||
35 | +// ], | ||
36 | +// 'list_options' => [ | ||
37 | +// 'view' => 'list-comment-review', | ||
38 | +// ], | ||
39 | +// 'form_options' => [ | ||
40 | +// 'view' => 'form-comment-review', | ||
41 | +// 'tag' => 'span', | ||
42 | +// ], | ||
43 | +// 'options' => [ | ||
44 | +// 'class' => 'proektant-comments-wr style', | ||
45 | +// ], | ||
46 | +// ]); | ||
47 | ?> | 47 | ?> |
48 | </div> | 48 | </div> |
49 | <div class="seo-text"> | 49 | <div class="seo-text"> |