浏览代码

user list page pagination fix

Oleg K 4 年之前
父节点
当前提交
79268347eb
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. 5 0
      config/web.php
  2. 1 1
      views/user/admin/index.php

+ 5 - 0
config/web.php

@@ -14,6 +14,11 @@ $config = [
         '@bower' => '@vendor/bower-asset',
         '@bower' => '@vendor/bower-asset',
         '@npm'   => '@vendor/npm-asset',
         '@npm'   => '@vendor/npm-asset',
     ],
     ],
+    'container' => [
+        'definitions' => [
+            \yii\widgets\LinkPager::class => \yii\bootstrap4\LinkPager::class,
+        ],
+    ],
     'components' => [
     'components' => [
         'request' => [
         'request' => [
             // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
             // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation

+ 1 - 1
views/user/admin/index.php

@@ -41,7 +41,7 @@ $this->params['breadcrumbs'][] = $this->title;
             'attribute' => 'id',
             'attribute' => 'id',
             'headerOptions' => ['style' => 'width:90px;'], # 90px is sufficient for 5-digit user ids
             'headerOptions' => ['style' => 'width:90px;'], # 90px is sufficient for 5-digit user ids
         ],
         ],
-        'username',
+        'uuid',
         'email:email',
         'email:email',
         [
         [
             'attribute' => 'registration_ip',
             'attribute' => 'registration_ip',