exists()) { $dataProvider = new ActiveDataProvider([ 'query' => $dummy_soaps, 'pagination' => [ 'pageSize' => 20, ], ]); echo GridView::widget([ 'hover' => true, 'headerContainer' => ['class' => 'thead-light'], 'tableOptions' => ['class' => 'table-sm'], 'striped' => false, 'summary' => false, 'pager' => [ 'firstPageLabel' => '<<', 'prevPageLabel' => '<', 'nextPageLabel' => '>', 'lastPageLabel' => '>>', ], 'dataProvider' => $dataProvider, 'columns' => [ [ 'attribute' => 'method_name', 'format' => 'text', 'contentOptions' => ['style' => 'max-width:20vw;'] ], [ 'attribute' => 'methodFormattedResponse', 'format' => 'html', 'contentOptions' => ['style' => 'max-width:50vw;'] ], [ 'header' => 'Удалить', 'class' => ActionColumn::class, 'template' => '{delete}', 'buttons' => [ 'delete' => function ($url, $model, $key) { return \yii\bootstrap4\Html::a('Удалить', [ '/log/delete-dummy-soap', 'id' => $model->id ], ['class' => 'btn btn-primary']); } ] ] ], ]); } else { ?>
Нет доступных заглушек для soap