From ce25c128742d67cdfd5303bb97db97cab50cb8f9 Mon Sep 17 00:00:00 2001 From: Matthieu Guffroy <mattgu74@gmail.com> Date: Thu, 12 Jun 2014 00:23:02 +0200 Subject: [PATCH] Edit archi --- controller/index.php | 3 +++ index.php | 28 +++++++++++++++------------- view/index.php | 8 ++++++++ 3 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 controller/index.php create mode 100644 view/index.php diff --git a/controller/index.php b/controller/index.php new file mode 100644 index 0000000..ae275b1 --- /dev/null +++ b/controller/index.php @@ -0,0 +1,3 @@ +<?php + +include 'view/index.php'; \ No newline at end of file diff --git a/index.php b/index.php index ab158ab..1cd7cd8 100644 --- a/index.php +++ b/index.php @@ -1,13 +1,15 @@ -<?php include 'template/header.php'; ?> -<?php include 'template/menu.php'; ?> - - <!-- Begin page content --> - <div class="container"> - <div class="page-header"> - <h1>Sticky footer with fixed navbar</h1> - </div> - <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> - </div> - -<?php include 'template/footer.php'; ?> \ No newline at end of file +<?php + // This file is the main controller + include 'template/header.php'; + + // TODO: Handle url to detect wich controller to call + + // Show the menu, the previous part have set wich page we are on to set the "active" class in menu + include 'template/menu.php'; + + // TODO: Call the correct controller + include 'controller/index.php'; + + // Show the footer + include 'template/footer.php'; +?> diff --git a/view/index.php b/view/index.php new file mode 100644 index 0000000..b439f75 --- /dev/null +++ b/view/index.php @@ -0,0 +1,8 @@ + <!-- Begin page content --> + <div class="container"> + <div class="page-header"> + <h1>Sticky footer with fixed navbar</h1> + </div> + <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> + </div> \ No newline at end of file -- GitLab