<?php require "./vendor/autoload.php"; $controllerName = '\\App\\C\\' . Core\Params::post('c', Core\Params::get('c', 'Reservation')) . 'Controller'; $actionName = Core\Params::post('a', Core\Params::get('a', 'liste')) . 'Action'; //connect to database \Core\Connection::setup('mysql:host=localhost;dbname=name', 'user', 'password', array(\PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\'')); chdir('../'); \Core\Controller::redirect($controllerName, $actionName, array_merge(Core\Params::post(), Core\Params::get())); \Core\Controller::getView()->display();