aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-03-05 04:38:53 -0500
committerThedro Neely <thedroneely@gmail.com>2019-03-05 04:38:53 -0500
commitbb28bf680e7293584a0c3e1c11ad06e57f1de168 (patch)
tree16b742d29471eb62a2d69906dbe44bb435d86d05
parent3a940d4c80e24a1702dff40ff5a3b70c1050c39c (diff)
downloadthedroneely.com-bb28bf680e7293584a0c3e1c11ad06e57f1de168.tar.gz
thedroneely.com-bb28bf680e7293584a0c3e1c11ad06e57f1de168.tar.bz2
thedroneely.com-bb28bf680e7293584a0c3e1c11ad06e57f1de168.zip
app/Routes: Add admin route
-rw-r--r--app/Routes.php2
-rw-r--r--app/controllers/admin.controller.php3
-rw-r--r--app/views/admin.view.php22
3 files changed, 27 insertions, 0 deletions
diff --git a/app/Routes.php b/app/Routes.php
index 7b73137..6b81ee3 100644
--- a/app/Routes.php
+++ b/app/Routes.php
@@ -8,6 +8,8 @@ $router->get('contact', '../app/controllers/contact.controller.php');
$router->get('resume', '../app/controllers/resume.controller.php');
+$router->get('admin', '../app/controllers/admin.controller.php');
+
$router->head('', '../app/controllers/index.controller.php');
diff --git a/app/controllers/admin.controller.php b/app/controllers/admin.controller.php
new file mode 100644
index 0000000..dc041f0
--- /dev/null
+++ b/app/controllers/admin.controller.php
@@ -0,0 +1,3 @@
+<?php
+
+require '../app/views/admin.view.php';
diff --git a/app/views/admin.view.php b/app/views/admin.view.php
new file mode 100644
index 0000000..9b1d8ff
--- /dev/null
+++ b/app/views/admin.view.php
@@ -0,0 +1,22 @@
+<?php require __DIR__ . '/partials/header.php'; ?>
+
+ <body>
+
+<?php require __DIR__ . '/partials/navigator.php'; ?>
+
+
+<div class="hero-body">
+ <div class="container">
+ <div class="columns is-centered">
+ <div class="column is-7">
+
+ <?php $hugo = shell_exec('cd ../generators/hugo; hugo; echo $?'); ?>
+ <pre><?php echo $hugo; ?></pre>
+
+ </div>
+ </div>
+ </div>
+</div>
+
+
+<?php require __DIR__ . '/partials/footer.php'; ?>