<?php

class ControllerMulti
{

    function __construct()
    {
        global $dsn, $user, $pass, $vues, $twig;
        session_start();
        try {

            echo $twig->render($vues["multi"]);

            /*
            $action = "";
            if (isset($_REQUEST['action'])) {
                $action = $_REQUEST['action'];
            }

            switch ($action) {
                case "goToLobby":
                    //require($vues['Solo']);
                    break;
                case "CreateLobby":
                    //require($vues['Multi']);
                    break;
                case "goToAcceuil":
                    require($vues['Accueil']);
                    break;
                default:
                    require($vues['Multi']);
                    break;
            }
            */
        } catch (PDOException $e) {
            // $dataVueEreur[] = "Erreur inattendue!!! ";
            // require(__DIR__.'/../vues/erreur.php');
        } catch (Exception $e2) {
            // $dataVueEreur[] = "Erreur inattendue!!! ";
            // require ($rep.$vues['erreur']);
        }
    }
}
