private function checkBoundary()
    {
        if($this->page->current > $this->page->total_pages) {

            $queryLink = !empty($this->page->currentUri) ? '&' : '?';
            $redirectUrl = substr($this->currentUri, 1) . $queryLink . 'page=' . $this->page->total_pages;

            $this->di->get('response')->redirect($redirectUrl);
        }
    }
private function checkBoundary()
    {
        if($this->page->current > $this->page->total_pages) {

            $queryLink = !empty($this->page->currentUri) ? '&' : '?';
            $redirectUrl = substr($this->currentUri, 1) . $queryLink . 'page=' . $this->page->total_pages;

            $this->di->get('response')->redirect($redirectUrl);
        }
    }
private function checkBoundary ( ) { if ( $ this -> page -> current > $ this -> page -> total_pages ) { $ queryLink = ! empty ( $ this -> page -> currentUri ) ? '&' : '?' ; $ redirectUrl = substr ( $ this -> currentUri , 1 ) . $ queryLink . 'page=' . $ this -> page -> total_pages ; $ this -> di -> get ( 'response' ) -> redirect ( $ redirectUrl ) ; } }
Checks if current page fit in total pages
@internal
Checks if current page fit in total pages