<?php

//Make a connection
$connection = new Phalcon\Db\Adapter\Pdo\Mysql(array('host' => '192.168.0.11', 'username' => 'sigma', 'password' => 'secret', 'dbname' => 'blog'));
//Reconnect
$connection->connect();
 private function getConnection()
 {
     $conn = new \Phalcon\Db\Adapter\Pdo\Mysql(array("host" => "localhost", "username" => "root", "password" => "123456", "dbname" => "tutorial"));
     $conn->connect();
     return $conn;
 }