23 lines
398 B
PHP
23 lines
398 B
PHP
<?php
|
|
|
|
defined('APP_PATH') || define('APP_PATH', realpath('..'));
|
|
|
|
/**
|
|
* Read the configuration
|
|
*/
|
|
$config = include APP_PATH . "/app/config/config.php";
|
|
|
|
if ($config->application->debug) {
|
|
(new Phalcon\Debug)->listen();
|
|
}
|
|
|
|
/**
|
|
* Read auto-loader
|
|
*/
|
|
include APP_PATH . "/app/config/loader.php";
|
|
|
|
/**
|
|
* Handle the request
|
|
*/
|
|
$app = new Httpcb\Application();
|
|
echo $app->bootstrap()->run();
|