Blame view

common/modules/comment/views/artbox_comment_list.php 881 Bytes
c05bf005   Yarik   Comment added
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  <?php
      use common\modules\comment\models\Comment;
      use yii\base\Model;
      use yii\data\ActiveDataProvider;
      use yii\helpers\Html;
      use yii\web\View;
      use yii\widgets\ListView;
      use yii\widgets\Pjax;
      
      /**
       * @var Comment            $comment_model
       * @var array              $list_params
       * @var array              $item_options
       * @var string             $item_view
       * @var Model              $model
       * @var ActiveDataProvider $comments
       * @var View               $this
       */
17ca60dd   Yarik   Added comments to...
19
      Pjax::begin();
c05bf005   Yarik   Comment added
20
21
22
23
24
25
26
      if(($success = \Yii::$app->session->getFlash('artbox_comment_success')) != null) {
          echo Html::tag('p', $success);
      }
      echo ListView::widget([
          'dataProvider' => $comments,
          'itemOptions'  => $item_options,
          'itemView'     => $item_view,
17ca60dd   Yarik   Added comments to...
27
          'summary' => '',
c05bf005   Yarik   Comment added
28
      ]);
17ca60dd   Yarik   Added comments to...
29
      Pjax::end();
c05bf005   Yarik   Comment added
30