【发布时间】:2022-10-22 19:00:55
【问题描述】:
我在 Yii 高级项目中安装了 Kartik,我添加了工具栏,但它隐藏了分页。我怎样才能让它出现?
如果我做错了,请纠正我...
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'exportTitle' => $this->title,
'panel' => ['type' => GridView::TYPE_SECONDARY, 'heading' => $this->title],
'export' => ['showConfirmAlert' => false,],
'pjax' => true,
'toolbar' => [
'{export}',
'{perPage}',
],
'options' => [
'class' => 'grid-primary',
],
'columns' => [
['class' => 'yii\grid\SerialColumn'],
.....
],
]); ?>
【问题讨论】:
标签: php gridview yii2-advanced-app kartik-v