You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1021 B
47 lines
1021 B
<?php
|
|
|
|
class Controleur {
|
|
|
|
function __construct() {
|
|
global $rep,$vues;
|
|
session_start();
|
|
|
|
$dVueEreur = array ();
|
|
try{
|
|
$action=$_REQUEST['action'];
|
|
echo $action;
|
|
switch($action) {
|
|
|
|
case NULL:
|
|
require ($rep.$vues['vueLogin']);
|
|
break;
|
|
|
|
default:
|
|
$dVueEreur[] ="Erreur d'appel php";
|
|
|
|
require ($rep.$vues['erreur']);
|
|
break;
|
|
}
|
|
|
|
} catch (PDOException $e)
|
|
{
|
|
|
|
$dVueEreur[] = "Erreur inattendue!!! ";
|
|
//require ($rep.$vues['erreur']);
|
|
|
|
}
|
|
|
|
|
|
//$this->afficherQuestions();
|
|
}
|
|
|
|
function afficherQuestions(){
|
|
global $rep,$vues;
|
|
|
|
$model = new Modele();
|
|
$dVueQuestions = $model->afficherQuestions();
|
|
require ($rep.$vues['vuePrincipale']);
|
|
}
|
|
}
|
|
|