split project in two part, framework and website

This commit is contained in:
Gregory Letellier
2023-11-14 12:02:02 +01:00
parent a597f2e883
commit db32b2e046

View File

@@ -2,17 +2,16 @@
/**
* Loading path constant
*/
define('DS', DIRECTORY_SEPARATOR);
*/
define('ROOT', dirname(dirname(__FILE__)));
/**
* Enable autoload
*/
require_once ROOT . DS . 'vendor'. DS . 'autoload.php';
require_once ROOT . DIRECTORY_SEPARATOR . 'vendor'. DIRECTORY_SEPARATOR . 'autoload.php';
// start application
$app = new \Kletellier\MiniWeb\Core\Kernel\Application();
$app = new \Kletellier\Framework\Core\Kernel\Application(ROOT);
// Handle Url and render Response
$app->handle();