mirror of
https://github.com/elyby/chrly.git
synced 2025-05-31 14:11:51 +05:30
Init commit
This commit is contained in:
22
public/index.php
Normal file
22
public/index.php
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user