Skip to content

Commit e43681b

Browse files
committed
Load paginator with loadComponent
1 parent 7672ef7 commit e43681b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_app/TestApp/Controller/ArticlesController.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@
55

66
class ArticlesController extends Controller
77
{
8-
public $components = ['Paginator'];
8+
public function initialize()
9+
{
10+
parent::initialize();
11+
$this->loadComponent('Paginator');
12+
}
913
}

0 commit comments

Comments
 (0)