diff --git a/controller/index.php b/controller/index.php new file mode 100644 index 0000000000000000000000000000000000000000..ae275b1fde594e3ee47dbe3814f036e1cd851aa8 --- /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 ab158abe8396bb936b98a7274988674ec0f7727b..1cd7cd8501a84f6d38179668607cada29d2bcc8a 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 0000000000000000000000000000000000000000..b439f75af279ed9e648775a81c7d3b2a532af44b --- /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