From e4f625ccb9fac60d672a2425a9300d8fb6aceabc Mon Sep 17 00:00:00 2001
From: vbochet <vbochet@gmail.com>
Date: Mon, 11 Apr 2016 22:46:18 +0200
Subject: [PATCH] Ajout de fichiers pour la page d'erreur 404.

---
 app/controller/ErrorController.php |  8 ++++++++
 app/view/error/error404.html       | 14 ++++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 app/controller/ErrorController.php
 create mode 100644 app/view/error/error404.html

diff --git a/app/controller/ErrorController.php b/app/controller/ErrorController.php
new file mode 100644
index 0000000..8e4e9db
--- /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 0000000..300c856
--- /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>
-- 
GitLab