Esempio n. 1
0
<?php

include 'config.php';
spl_autoload_register();
$controller = new Controller\DefaultController();
if (empty($_GET)) {
    //accueill
    $controller->home();
} elseif ($_GET['p'] == "details/") {
    //details du film
    $id = $_GET['id'];
    $controller->details($id);
} else {
    $controller->fourofour();
}
Esempio n. 2
0
<?php

include "functions.php";
include "config.php";
spl_autoload_register();
$controller = new Controller\DefaultController();
//ptr($_GET);
if (empty($_GET)) {
    //accueil
    $controller->home();
} elseif ($_GET['p'] == "details/") {
    //details du film
    $controller->details();
} else {
    $controller->fourofour();
}