initial commit
This commit is contained in:
commit
e869a1cab4
107 changed files with 9029 additions and 0 deletions
29
public/index.php
Normal file
29
public/index.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?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();
|
||||
Reference in a new issue