OSDN Git Service

Добавлена возможность изменения количества записей, выводимых на странице предметов...
[invent/invent.git] / config / web.php
index 075f5ee..3dadf42 100644 (file)
@@ -10,7 +10,7 @@ $db = require __DIR__ . '/db.php';
 require_once __DIR__ . '/myfunctions.php';
 
 $config = [
-    'version' => '1.29',
+    'version' => '1.31',
     'name' => 'Inventory',
     'id' => 'basic',
     'basePath' => dirname(__DIR__),
@@ -109,6 +109,20 @@ $config = [
         ],
         */
     ],
+    'container' => [
+        'definitions' => [
+            'yii\widgets\LinkPager' => [
+                'firstPageLabel' => Html::tag('span', '', [ 'class' => 'glyphicon glyphicon-fast-backward', 'title' => 'Первая страница', ]),
+                'prevPageLabel' => Html::tag('span', '', [ 'class' => 'glyphicon glyphicon-backward', 'title' => 'Предыдущая страница', ]),
+                'nextPageLabel' => Html::tag('span', '', [ 'class' => 'glyphicon glyphicon-forward', 'title' => 'Следующая страница', ]),
+                'lastPageLabel' => Html::tag('span', '', [ 'class' => 'glyphicon glyphicon-fast-forward', 'title' => 'Последняя страница', ]),
+//                'firstPageLabel' => Html::tag('span', '', [ 'class' => 'glyphicon glyphicon-fast-backward', 'title' => Yii::t('app', 'First page'), ]),
+//                'prevPageLabel' => Html::tag('span', '', [ 'class' => 'glyphicon glyphicon-backward', 'title' => Yii::t('app', 'Previous page'), ]),
+//                'nextPageLabel' => Html::tag('span', '', [ 'class' => 'glyphicon glyphicon-forward', 'title' => Yii::t('app', 'Next page'), ]),
+//                'lastPageLabel' => Html::tag('span', '', [ 'class' => 'glyphicon glyphicon-fast-forward', 'title' => Yii::t('app', 'Last page'), ]),
+            ],
+        ],
+    ],
     'params' => $params,
 ];