<?php use yii\widgets\ListView; use app\helpers\Html; $controller = $this->context; $this->params['breadcrumbs'] = [['label' => $controller->t($controller::TITLE)]]; $this->title = [$controller->t($controller::TITLE)]; ?> <h1> <?php echo Html::glyphicon('picture'); ?> <?php echo $controller->t($controller::TITLE); ?> </h1> <?php echo Html::addButton(['url' => $controller::URL_TO_ADD]); ?> <br><br> <?php echo ListView::widget(['dataProvider' => $DP, 'itemView' => '_list_item.php', 'options' => ['class' => 'list-view list-view-linear list-view-images'], 'layout' => '{items}<div class="pagination-wrap">{pager}</div>', 'itemOptions' => ['tag' => false]]);