split project in two part, framework and website
This commit is contained in:
@@ -3,16 +3,15 @@
|
|||||||
/**
|
/**
|
||||||
* Loading path constant
|
* Loading path constant
|
||||||
*/
|
*/
|
||||||
define('DS', DIRECTORY_SEPARATOR);
|
|
||||||
define('ROOT', dirname(dirname(__FILE__)));
|
define('ROOT', dirname(dirname(__FILE__)));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable autoload
|
* Enable autoload
|
||||||
*/
|
*/
|
||||||
require_once ROOT . DS . 'vendor'. DS . 'autoload.php';
|
require_once ROOT . DIRECTORY_SEPARATOR . 'vendor'. DIRECTORY_SEPARATOR . 'autoload.php';
|
||||||
|
|
||||||
// start application
|
// start application
|
||||||
$app = new \Kletellier\MiniWeb\Core\Kernel\Application();
|
$app = new \Kletellier\Framework\Core\Kernel\Application(ROOT);
|
||||||
|
|
||||||
// Handle Url and render Response
|
// Handle Url and render Response
|
||||||
$app->handle();
|
$app->handle();
|
||||||
Reference in New Issue
Block a user