public function render($path = 'basic', $views = null)
    {
        $view = new View();
        if (is_null($views)) {
            $views = __DIR__.'/views/';
        }

        $view->createBlade($views, $this->_config->get('cache'));

        return $view->with('pagination', [
            'currentPage' => $this->_page,
            'totalPages'  => $this->_totalPages,
            ])->render($path);
    }
public function render($path = 'basic', $views = null)
    {
        $view = new View();
        if (is_null($views)) {
            $views = __DIR__.'/views/';
        }

        $view->createBlade($views, $this->_config->get('cache'));

        return $view->with('pagination', [
            'currentPage' => $this->_page,
            'totalPages'  => $this->_totalPages,
            ])->render($path);
    }
public function render ( $ path = 'basic' , $ views = null ) { $ view = new View ( ) ; if ( is_null ( $ views ) ) { $ views = __DIR__ . '/views/' ; } $ view -> createBlade ( $ views , $ this -> _config -> get ( 'cache' ) ) ; return $ view -> with ( 'pagination' , [ 'currentPage' => $ this -> _page , 'totalPages' => $ this -> _totalPages , ] ) -> render ( $ path ) ; }
Renders pagination links.

@param string $path  - The view path
@param string $views - Where the pagination view is stored

@return mixed
Renders pagination links .