Yes, when you have installed phalcon extension just create instance from this class, you could make something like this:
<?php
$di = new Phalcon\DI();
//Registrar un servicio 'db'
$di->set('db', function() {
return new Phalcon\Db\Adapter\Pdo\Mysql(
"host" => "localhost",
"username" => "root",
"password" => "secret",
"dbname" => "invo"
);
});
// Instantiate the Query
$query = new Phalcon\Mvc\Model\Query("SELECT * FROM Cars");
// Pass the DI container
$query->setDI($di);
// Execute the query returning a result if any
$cars = $query->execute();
Or simply with php Phalcon\Mvc\Model\Manager()
class