chrly/public/index.php

25 lines
545 B
PHP
Raw Normal View History

2015-01-29 01:50:29 +05:30
<?php
use Phalcon\Mvc\Micro;
2015-01-29 01:50:29 +05:30
error_reporting(E_ALL);
try {
/** @var \Phalcon\Config $config */
$config = include __DIR__ . '/../config/config.php';
2015-01-29 01:50:29 +05:30
/** @var \Phalcon\Loader $loader */
include __DIR__ . '/../config/loader.php';
/** @var Phalcon\DI\FactoryDefault $di */
include __DIR__ . '/../config/services.php';
$app = new Micro($di);
2015-01-29 01:50:29 +05:30
include __DIR__ . '/../app.php';
$app->handle();
} catch (Phalcon\Exception $e) {
echo $e->getMessage();
} catch (PDOException $e) {
echo $e->getMessage();
}