OSDN Git Service
(root)
/
invent
/
invent.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Добавлена возможность изменения количества записей, выводимых на странице предметов...
[invent/invent.git]
/
models
/
ItemsSearch.php
diff --git
a/models/ItemsSearch.php
b/models/ItemsSearch.php
index
e84d74a
..
9175645
100644
(file)
--- a/
models/ItemsSearch.php
+++ b/
models/ItemsSearch.php
@@
-164,6
+164,9
@@
class ItemsSearch extends Items
$dataProvider = new ActiveDataProvider([
'query' => $query,
+ 'pagination' => [
+ 'pageSize' => \Yii::$app->session['pageSize'] ?? 20,
+ ],
]);
$dataProvider->setSort([