* The `paginator` option for `Controller::paginate()` is deprecated. Instead use the `className` option.
* The `paginator` option for `PaginatorComponent` is deprecated. Instead use the `className` option.
but at Pagination - 4.x page, It does not mention about how to use className option ?
Right now if debug mode is true then i got this error
[**Deprecated** (16384) ](javascript:void(0);): PaginatorComponent is deprecated, use a Cake\Datasource\Pagination\NumericPaginator instance directly.
It works if debug mode is false but Where i can find code for pagination in cakephp 4.4
Not sure what your code looks like but found I had to remove/change the following
$this->loadComponent('Paginator'); // remove this line from all your code
//
$this->paginate($whatYouArePaginating, [
'paginator' => 'YourPaginatorClass', // remove this if it exists
'className' => 'YourPaginatorClass' // add this
]);
// or if assigning to the property
$this->paginate = [
'paginator' => 'YourPaginatorClass', // remove this if it exists
'className' => 'YourPaginatorClass' // add this
];
// or
public $paginate = [
'paginator' => 'YourPaginatorClass', // remove this if it exists
'className' => 'YourPaginatorClass' // add this or just don't specify to use default NumericPaginator class.
];