src/DataSource/ServerSide/CakePHP.php
protected function preparePaging(Request $request)
    {
        self::$countBeforePaging = $this->query->count();
        $this->query->limit($request->getLength());
        $this->query->offset($request->getStart());
    }
protected function preparePaging(Request $request)
    {
        self::$countBeforePaging = $this->query->count();
        $this->query->limit($request->getLength());
        $this->query->offset($request->getStart());
    }
protected function preparePaging ( Request $ request ) { self :: $ countBeforePaging = $ this -> query -> count ( ) ; $ this -> query -> limit ( $ request -> getLength ( ) ) ; $ this -> query -> offset ( $ request -> getStart ( ) ) ; }
Prepare CakePHP paging

@param Request $request DataTable request
Prepare CakePHP paging