Blame view

frontend/views/comments/index.php 270 Bytes
b224f0ae   Alexey Boroda   Changes:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  <?php
  /**
   * @var Comments $comments
   */
  use common\models\Comments;
  use common\modules\comment\widgets\CommentWidget;
  
  ?>
  
  
  <?php
  $comments = new Comments([
      'id' => 1,
  ]);
  echo CommentWidget::widget([
      'model' => $comments,
      'entityIdAttribute' => 'id'
  ]);
  ?>