<?php
use Phalcon\Mvc\Micro, Phalcon\Db\Adapter\Pdo\Mysql as test;
$app = new Micro ();
// Set up the database service
$app ['db'] = function () {
return new test ( array (
"host" => "127.0.0.1",
"username" => "root",
"password" => "root",
"dbname" => "test"
) );
};
$phql = "select * from test
";
$robots = $app ['db']->query ( $phql );
echo '<pre>';
var_dump ( $robots );
//Tips:The results are empty