Class Phalcon\Paginator\Factory

<?phpusePhalcon\Paginator\Factory;/**
* The `modelsManager` is automatically created when you instantiate your DI
* container using the `FactoryDefault` class. It returns a
* [Phalcon\Mvc\Model\Manager](/3.4/en/api/Phalcon_Mvc_Model_Manager) object
*/$builder=$this->modelsManager->createBuilder()->columns("id, name")->from("Robots")->orderBy("name");$options=["builder"=>$builder,"limit"=>20,"page"=>1,"adapter"=>"queryBuilder",];$paginator=Factory::load($options);