Archived
1
0
Fork 0
This repository has been archived on 2026-04-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
httpcb/public/index.php
2017-09-01 17:10:27 +02:00

29 lines
501 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";
/**
* Read services
*/
include APP_PATH . "/app/config/services.php";
/**
* Handle the request
*/
$application = new \Phalcon\Mvc\Application($di);
echo $application->handle()->getContent();