extends abstract class Phalcon\Paginator\Adapter
implements Phalcon\Paginator\AdapterInterface
This adapter allows to paginate data using a Phalcon\Mvc\Model resultset as a base.
use Phalcon\Paginator\Adapter\Model; $paginator = new Model( [ 'data' => Robots::find(), 'limit' => 25, 'page' => $currentPage ] ); $paginate = $paginator->getPaginate();
Phalcon\Paginator\Adapter\Model constructor
Returns a slice of the resultset to show in the pagination
Set the current page number
Set current rows limit
Get current rows limit
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Paginator_Adapter_Model.html