online-faq/index.php
2020-10-03 20:50:40 +02:00

28 lines
570 B
PHP
Executable File

<?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 occurred in part 0 while processing your request.' );
}