custom column
This commit is contained in:
@ -22,7 +22,7 @@ class Pagination
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public function __construct(array $options,)
|
||||
public function __construct(array $options)
|
||||
{
|
||||
if (!$options['countItem']) {
|
||||
throw new Exception(message: "countItem is not valid");
|
||||
@ -30,7 +30,7 @@ class Pagination
|
||||
$this->countItem = $options['countItem'];
|
||||
$this->perPage = $options['perPage'] ?? 10;
|
||||
$this->currentPage = $options['currentPage'] ?? 1;
|
||||
$this->baseUrl = $options['baseUrl'];
|
||||
$this->baseUrl = $options['baseUrl'] ?? '';
|
||||
$this->baseUrl .= $options['prefix'] ?? '/page';
|
||||
|
||||
$this->countPages = ceil($this->countItem / $this->perPage);
|
||||
|
Reference in New Issue
Block a user