public function simpleRendeArray()
    {
        $array = [];
        $count = $this->paginator->getCount();
        $url = $this->path;
        $current = $this->paginator->getCurrentPage();

        // create appends string
        $appends = $this->createAppendString($this->paginator->getAppends());

        // create fragments string
        $fragments = $this->createFragmentsString($this->paginator->getFragments());


        if ($count < $this->paginator->getPerPage()) {
            $limit = 1;
        } else {
            $limit = ceil($count / $this->paginator->getPerPage());
        }


        if ($this->isAvaibleCurrentPage($current) && $current > 1) {

            $previous = $current - 1;
            $array[] = $this->buildChieldString('Previous', $this->buildFullChieldStrind($url, $appends), $this->pageName, $fragments, $previous);

        }

        if ($this->isAvaibleCurrentPage($current) && $current < $limit) {
            $next = $current + 1;

            $array[] = $this->buildChieldString('Next', $this->buildFullChieldStrind($url, $appends), $this->pageName, $fragments, $next);
        }

        return $array;
    }
public function simpleRendeArray()
    {
        $array = [];
        $count = $this->paginator->getCount();
        $url = $this->path;
        $current = $this->paginator->getCurrentPage();

        // create appends string
        $appends = $this->createAppendString($this->paginator->getAppends());

        // create fragments string
        $fragments = $this->createFragmentsString($this->paginator->getFragments());


        if ($count < $this->paginator->getPerPage()) {
            $limit = 1;
        } else {
            $limit = ceil($count / $this->paginator->getPerPage());
        }


        if ($this->isAvaibleCurrentPage($current) && $current > 1) {

            $previous = $current - 1;
            $array[] = $this->buildChieldString('Previous', $this->buildFullChieldStrind($url, $appends), $this->pageName, $fragments, $previous);

        }

        if ($this->isAvaibleCurrentPage($current) && $current < $limit) {
            $next = $current + 1;

            $array[] = $this->buildChieldString('Next', $this->buildFullChieldStrind($url, $appends), $this->pageName, $fragments, $next);
        }

        return $array;
    }
public function simpleRendeArray ( ) { $ array = [ ] ; $ count = $ this -> paginator -> getCount ( ) ; $ url = $ this -> path ; $ current = $ this -> paginator -> getCurrentPage ( ) ; // create appends string $ appends = $ this -> createAppendString ( $ this -> paginator -> getAppends ( ) ) ; // create fragments string $ fragments = $ this -> createFragmentsString ( $ this -> paginator -> getFragments ( ) ) ; if ( $ count < $ this -> paginator -> getPerPage ( ) ) { $ limit = 1 ; } else { $ limit = ceil ( $ count / $ this -> paginator -> getPerPage ( ) ) ; } if ( $ this -> isAvaibleCurrentPage ( $ current ) && $ current > 1 ) { $ previous = $ current - 1 ; $ array [ ] = $ this -> buildChieldString ( 'Previous' , $ this -> buildFullChieldStrind ( $ url , $ appends ) , $ this -> pageName , $ fragments , $ previous ) ; } if ( $ this -> isAvaibleCurrentPage ( $ current ) && $ current < $ limit ) { $ next = $ current + 1 ; $ array [ ] = $ this -> buildChieldString ( 'Next' , $ this -> buildFullChieldStrind ( $ url , $ appends ) , $ this -> pageName , $ fragments , $ next ) ; } return $ array ; }
create pagination with only previous and next buttons

@return array
create pagination with only previous and next buttons