pagination
This commit is contained in:
@ -14,12 +14,12 @@ class Pagination
|
||||
|
||||
private string $baseUrl;
|
||||
|
||||
// public function __construct($countItem, $perPage, $currentPage, $baseUrl)
|
||||
public function __construct(int $countItem, array $params, string $baseUrl)
|
||||
public function __construct($countItem, $perPage, $currentPage, $baseUrl)
|
||||
// public function __construct(int $countItem, array $params, string $baseUrl)
|
||||
{
|
||||
$this->countItem = $countItem;
|
||||
$this->perPage = $params['perPage'];
|
||||
$this->currentPage = $params['currentPage'];
|
||||
$this->perPage = $perPage;
|
||||
$this->currentPage = $currentPage;
|
||||
$this->baseUrl = $baseUrl;
|
||||
|
||||
$this->countPages = ceil($this->countItem / $this->perPage);
|
||||
|
Reference in New Issue
Block a user