From 837ad6c80ca9d570546ff90c7c9ee5b16c63f56b Mon Sep 17 00:00:00 2001
From: Matthieu Guffroy <mattgu74@gmail.com>
Date: Thu, 12 Jun 2014 01:58:22 +0200
Subject: [PATCH] cosmetic change + autoloader

---
 index.php      |  4 ++++
 view/index.php | 10 ++--------
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/index.php b/index.php
index ebb0c76..2052725 100644
--- a/index.php
+++ b/index.php
@@ -1,4 +1,8 @@
 <?php
+    function __autoload($class_name) {
+        include strtolower($class_name) . '.php';
+    }
+
     // This file is the main controller
     include 'template/header.php';
 
diff --git a/view/index.php b/view/index.php
index 4c6222c..c605bbb 100644
--- a/view/index.php
+++ b/view/index.php
@@ -1,13 +1,7 @@
     <!-- Begin page content -->
     <div class="container">
       <div class="page-header">
-        <h1>Sticky footer with fixed navbar</h1>
+        <h1>Clinique Vétérinaire</h1>
       </div>
-      <pre>
-      	<?php print_r($url); ?>
-      <pre>
-      	<?php print_r($_SERVER); ?>
-      </pre>
-      <p class="lead">Pin a fixed-height footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS. A fixed navbar has been added with <code>padding-top: 60px;</code> on the <code>body > .container</code>.</p>
-      <p>Back to <a href="../sticky-footer">the default sticky footer</a> minus the navbar.</p>
+      <p class="lead">Bienvenue sur l'outil de gestion de la clinique.</p>
     </div>
\ No newline at end of file
-- 
GitLab