Init commit

This commit is contained in:
ErickSkrauch
2015-01-28 23:20:29 +03:00
commit 290738377b
9 changed files with 235 additions and 0 deletions

22
public/index.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
error_reporting(E_ALL);
try {
/** @var \Phalcon\Config $config */
$config = include __DIR__ . "/../config/config.php";
/** @var \Phalcon\Loader $loader */
include __DIR__ . '/../config/loader.php';
/** @var Phalcon\DI\FactoryDefault $di */
include __DIR__ . '/../config/services.php';
$app = new \Phalcon\Mvc\Micro($di);
include __DIR__ . '/../app.php';
$app->handle();
} catch (Phalcon\Exception $e) {
echo $e->getMessage();
} catch (PDOException $e) {
echo $e->getMessage();
}