Table Of Contents

Previous topic

Class Phalcon\Mvc\View\Exception

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 Phalcon\Model resultsets.

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