Core/Helper/Pagination/Pagination.php
public function show($template = '.app/system/helper/pagination/default') {
        $rand = rand(0, 2);
        $tpl = new Template($template, 'pagination_' . $rand, 0);
        $tpl->assign(['paginationFirst' => $this->_buttonFirst, 'paginationLast' => $this->_buttonLast, 'paginationBefore' => $this->_buttonBefore, 'paginationAfter' => $this->_buttonAfter, 'currentPage' => $this->_currentPage, 'paginationFirstBefore' => $this->_paginationFirstBefore, 'paginationLastAfter' => $this->_paginationLastAfter, 'urlFirst' => preg_replace('#\{page\}#isU', 1, $this->_url), 'urlLast' => preg_replace('#\{page\}#isU', $this->_nbrPage, $this->_url), 'urlBefore' => preg_replace('#\{page\}#isU', $this->_currentPage - 1, $this->_url), 'urlAfter' => preg_replace('#\{page\}#isU', $this->_currentPage + 1, $this->_url), 'pagination' => $this->_paginationList, 'totalPage' => $this->_paginationTotalPage, 'nbrPage' => $this->_nbrPage]);

        return $tpl->show();
    }
public function show($template = '.app/system/helper/pagination/default') {
        $rand = rand(0, 2);
        $tpl = new Template($template, 'pagination_' . $rand, 0);
        $tpl->assign(['paginationFirst' => $this->_buttonFirst, 'paginationLast' => $this->_buttonLast, 'paginationBefore' => $this->_buttonBefore, 'paginationAfter' => $this->_buttonAfter, 'currentPage' => $this->_currentPage, 'paginationFirstBefore' => $this->_paginationFirstBefore, 'paginationLastAfter' => $this->_paginationLastAfter, 'urlFirst' => preg_replace('#\{page\}#isU', 1, $this->_url), 'urlLast' => preg_replace('#\{page\}#isU', $this->_nbrPage, $this->_url), 'urlBefore' => preg_replace('#\{page\}#isU', $this->_currentPage - 1, $this->_url), 'urlAfter' => preg_replace('#\{page\}#isU', $this->_currentPage + 1, $this->_url), 'pagination' => $this->_paginationList, 'totalPage' => $this->_paginationTotalPage, 'nbrPage' => $this->_nbrPage]);

        return $tpl->show();
    }
public function show ( $ template = '.app/system/helper/pagination/default' ) { $ rand = rand ( 0 , 2 ) ; $ tpl = new Template ( $ template , 'pagination_' . $ rand , 0 ) ; $ tpl -> assign ( [ 'paginationFirst' => $ this -> _buttonFirst , 'paginationLast' => $ this -> _buttonLast , 'paginationBefore' => $ this -> _buttonBefore , 'paginationAfter' => $ this -> _buttonAfter , 'currentPage' => $ this -> _currentPage , 'paginationFirstBefore' => $ this -> _paginationFirstBefore , 'paginationLastAfter' => $ this -> _paginationLastAfter , 'urlFirst' => preg_replace ( '#\{page\}#isU' , 1 , $ this -> _url ) , 'urlLast' => preg_replace ( '#\{page\}#isU' , $ this -> _nbrPage , $ this -> _url ) , 'urlBefore' => preg_replace ( '#\{page\}#isU' , $ this -> _currentPage - 1 , $ this -> _url ) , 'urlAfter' => preg_replace ( '#\{page\}#isU' , $ this -> _currentPage + 1 , $ this -> _url ) , 'pagination' => $ this -> _paginationList , 'totalPage' => $ this -> _paginationTotalPage , 'nbrPage' => $ this -> _nbrPage ] ) ; return $ tpl -> show ( ) ; }
display the pagination
@access public
@return string
@param $template string : template path
@since 3.0
@package helper\Pagination
display the pagination