Init
This commit is contained in:
20
public/index.php
Normal file
20
public/index.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Loading path constant
|
||||
*/
|
||||
define('DS', DIRECTORY_SEPARATOR);
|
||||
define('ROOT', dirname(dirname(__FILE__)));
|
||||
|
||||
|
||||
/**
|
||||
* Enable autoload
|
||||
*/
|
||||
require_once ROOT . DS . 'vendor'. DS . 'autoload.php';
|
||||
|
||||
|
||||
// start application
|
||||
$app = new \App\Core\Kernel\Application();
|
||||
|
||||
// Handle Url and render Response
|
||||
$app->handle();
|
||||
Reference in New Issue
Block a user