load(); $this->page = $page; $this->total = $total; $this->perPage = $configClass->get('listing_element_page', $perPage); $this->pageName = $pageName; } public function display() { // We calculate the number of pages $numberOfPages = ceil($this->total / $this->perPage); $pagination = '