Blame view

common/modules/comment/widgets/views/list-comment-question.php 754 Bytes
b5becf98   Yarik   test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  <?php
      /**
       * @var \yii\data\DataProviderInterface $dataProvider
       * @var Comment $commentClass
       */
      use common\modules\comment\models\Comment;
      use common\modules\comment\widgets\CommentWidget;
      echo \yii\widgets\ListView::widget([
          'dataProvider' => $dataProvider,
          'itemView'     => '_question_comment_view',
          'options'      => [
              'tag'   => 'ul',
              'class' => 'proektant-comments style',
          ],
          'itemOptions'  => [
              'tag'   => 'li',
              'class' => CommentWidget::$baseClass[ 'comment_container' ],
              'data' => [
                  'form' => $commentClass->formName(),
              ],
          ],
          'layout'       => "{items}\n{pager}",
      ]);