Initial commit

This commit is contained in:
2020-10-02 08:06:04 +02:00
parent 25708d01db
commit 1fd648bc4a
17 changed files with 567 additions and 1 deletions

26
index.php Normal file
View File

@ -0,0 +1,26 @@
<?php
/**
* Includes the main inc
* This is the index file.
*/
require_once __DIR__ . '/main.inc.php';
try
{
# Initialize Request
$request = new Request();
# Get Controller from Factory
$controller = Factory::getController( $request );
# Get Action from Factory
$action = Factory::getAction( $controller, $request );
# Call controller and action
echo $controller->$action();
}
catch ( Exception $e )
{
# Please replace it with error template
die( 'An internal error occured while processing your request.' );
}