Example #1
0
    require_once $_SERVER['DOCUMENT_ROOT'] . "/imie/boutique/controllers/edit.php";
    $controllerEdit = new Controller_Edit();
    $controllerEdit->edit();
} elseif ($controller == "article" && $action == "add") {
    require_once $_SERVER['DOCUMENT_ROOT'] . "/imie/boutique/controllers/article.php";
    $controller_Article = new Controller_Article();
    $controller_Article->addArticle();
} elseif ($controller == "article" && $action == "delete") {
    require_once $_SERVER['DOCUMENT_ROOT'] . "/imie/boutique/controllers/article.php";
    $controller_Article = new Controller_Article();
    $controller_Article->deleteArticle();
} elseif ($controller == "article" && $action == "detail") {
    $id = $_GET['id'];
    require_once $_SERVER['DOCUMENT_ROOT'] . "/imie/boutique/controllers/article.php";
    $controller_article = new Controller_Article();
    $controller_article->detailArticle($id);
} elseif ($controller == "article" && $action == "list") {
    require_once $_SERVER['DOCUMENT_ROOT'] . "/imie/boutique/controllers/article.php";
    $controller_article = new Controller_Article();
    $controller_article->listArticle();
} elseif ($controller == "user" && $action == "list") {
    require_once $_SERVER['DOCUMENT_ROOT'] . "/imie/boutique/controllers/inscription.php";
    $Controller_Inscription = new Controller_Inscription();
    $Controller_Inscription->listUser();
} elseif ($controller == "contact" && $action == "contact") {
    require_once $_SERVER['DOCUMENT_ROOT'] . "/imie/boutique/controllers/contact.php";
    $Controller_Contact = new Controller_Contact();
    $Controller_Contact->contact();
} elseif ($controller == "marque" && $action == "add") {
    require_once $_SERVER['DOCUMENT_ROOT'] . "/imie/boutique/controllers/marque.php";
    $Controller_Marque = new Controller_Marque();