回答編集履歴
1
修正
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
public $paginate = [
|
10
10
|
|
11
|
-
'limit' =>
|
11
|
+
'limit' => 10,
|
12
12
|
|
13
13
|
'order' => [
|
14
14
|
|
@@ -24,6 +24,10 @@
|
|
24
24
|
|
25
25
|
{
|
26
26
|
|
27
|
+
$limit = $this->request->session()->read('limit');
|
28
|
+
|
29
|
+
$this->paginate['limit'] = $limit;
|
30
|
+
|
27
31
|
parent::initialize();
|
28
32
|
|
29
33
|
$this->loadComponent('Paginator');
|