diff --git a/app/controller/ErrorController.php b/app/controller/ErrorController.php new file mode 100644 index 0000000000000000000000000000000000000000..8e4e9db2e043b2ba7c85656c069a26d70c4cbaca --- /dev/null +++ b/app/controller/ErrorController.php @@ -0,0 +1,8 @@ +<?php + +class ErrorController extends Controller { // contrôleur pour la page d'index, qui hérite de la classe mère abstraite Controller + + public function error404() { + $this->view->display(); // et on appelle la méthode display() qui va afficher la page + } +} diff --git a/app/view/error/error404.html b/app/view/error/error404.html new file mode 100644 index 0000000000000000000000000000000000000000..300c8567ce795ab994e00d54d12a1f5dd86274ae --- /dev/null +++ b/app/view/error/error404.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"/> + <title>Erreur 404</title> + <base href="http://localhost/projet-web-2016/www/"/> +</head> +<body> + <header> + <h1>Erreur 404</h1> + </header> + <h2>La page que vous demandez est inaccessible, ou n'existe pas (ou plus...)</h2> +</body> +</html>