public function pagination($perPage = 15)
    {

        $currentPageFinder = Paginator::getCurrentPageFinder();
        $pathFinder = Paginator::getRequestPathFinder();


        $pagination = new Paginator($perPage, call_user_func($currentPageFinder), [
            'pageName' => 'page',
            'path' => call_user_func($pathFinder),
        ]);

        $pagination->setMode(Paginator::MODE_STANDART);
        $count = $this->build()->rowCount();

        $pagination->count($count);

        return $pagination;
    }
public function pagination($perPage = 15)
    {

        $currentPageFinder = Paginator::getCurrentPageFinder();
        $pathFinder = Paginator::getRequestPathFinder();


        $pagination = new Paginator($perPage, call_user_func($currentPageFinder), [
            'pageName' => 'page',
            'path' => call_user_func($pathFinder),
        ]);

        $pagination->setMode(Paginator::MODE_STANDART);
        $count = $this->build()->rowCount();

        $pagination->count($count);

        return $pagination;
    }
public function pagination ( $ perPage = 15 ) { $ currentPageFinder = Paginator :: getCurrentPageFinder ( ) ; $ pathFinder = Paginator :: getRequestPathFinder ( ) ; $ pagination = new Paginator ( $ perPage , call_user_func ( $ currentPageFinder ) , [ 'pageName' => 'page' , 'path' => call_user_func ( $ pathFinder ) , ] ) ; $ pagination -> setMode ( Paginator :: MODE_STANDART ) ; $ count = $ this -> build ( ) -> rowCount ( ) ; $ pagination -> count ( $ count ) ; return $ pagination ; }
create a instance for standart pagination

@param int $perPage
@return Paginator
create a instance for standart pagination