W3cubDocs

/Phalcon 2

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

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Paginator_Adapter_Model.html