Table Of Contents

Previous topic

< Class Phalcon\Mvc\View\Simple

Next topic

Class Phalcon\Paginator\Adapter\NativeArray >

This Page

Class Phalcon\Paginator\Adapter\Model

implements Phalcon\Paginator\AdapterInterface

This adapter allows to paginate data using a Phalcon\Mvc\Model resultset as base

Methods

public __construct (array $config)

Phalcon\Paginator\Adapter\Model constructor

public setCurrentPage (int $page)

Set the current page number

public stdClass getPaginate ()

Returns a slice of the resultset to show in the pagination