2017 © Pedro Peláez
 

library phalcon-mongodb-pagination-adapter

MongoDB pagination adapter for phalcon

image

alexello/phalcon-mongodb-pagination-adapter

MongoDB pagination adapter for phalcon

  • Thursday, June 5, 2014
  • by AlexEllo
  • Repository
  • 1 Watchers
  • 3 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

phalcon-mongodb-pagination-adapter

MongoDB pagination adapter for phalcon, (*1)

usage


// Current page to show // In a controller this can be: // $this->request->getQuery('page', 'int'); // GET // $this->request->getPost('page', 'int'); // POST $currentPage = (int) $_GET["page"]; // The data set to paginate $robots = $DB->selectCollection('robots')->find(); // Create a Model paginator, show 10 rows by page starting from $currentPage $paginator = new \AlexEllo\Phalcon\MongoDB\Pagination\Adapter\MongoCursor( array( "data" => $robots, "limit"=> 10, "page" => $currentPage ) ); // Get the paginated results $page = $paginator->getPaginate();

The Versions

05/06 2014

dev-master

9999999-dev https://github.com/AlexEllo/phalcon-mongodb-pagination-adapter

MongoDB pagination adapter for phalcon

  Sources   Download

MIT

The Requires

  • ext-mongo ~1.5.2
  • ext-phalcon ~1.3.1

 

by Ello

05/06 2014

v1.0.0

1.0.0.0 https://github.com/AlexEllo/phalcon-mongodb-pagination-adapter

MongoDB pagination adapter for phalcon

  Sources   Download

MIT

The Requires

  • ext-mongo ~1.5.2
  • ext-phalcon ~1.3.1

 

by Ello