aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-10-19 03:29:52 -0400
committerThedro Neely <thedroneely@gmail.com>2019-10-19 03:30:22 -0400
commit82350adcaa24ef8a8c70a5bd8913ad7e3f80ac3e (patch)
tree65e2ed822aa25788f40cfd68ab65686a616cbebc /bootstrap
parent82a0a45cfc6101757f9e2bd01bc0bcee9749fd17 (diff)
downloadthedroneely.com-82350adcaa24ef8a8c70a5bd8913ad7e3f80ac3e.tar.gz
thedroneely.com-82350adcaa24ef8a8c70a5bd8913ad7e3f80ac3e.tar.bz2
thedroneely.com-82350adcaa24ef8a8c70a5bd8913ad7e3f80ac3e.zip
bootstrap/Functions: Add feather icon helper function
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/Bootstrap.php7
-rw-r--r--bootstrap/Functions.php12
2 files changed, 17 insertions, 2 deletions
diff --git a/bootstrap/Bootstrap.php b/bootstrap/Bootstrap.php
index 02d9395..8285bbe 100644
--- a/bootstrap/Bootstrap.php
+++ b/bootstrap/Bootstrap.php
@@ -1,10 +1,13 @@
<?php
/* composer autoload */
-require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/vendor/autoload.php';;
+require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/vendor/autoload.php';
+
+/* source functions */
+require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/bootstrap/Functions.php';
/* source config file */
-$config = include $_SERVER['DOCUMENT_ROOT'] . '/..' . '/AppConfig.php';;
+$config = include $_SERVER['DOCUMENT_ROOT'] . '/..' . '/AppConfig.php';
/* connect database */
$contact['database'] = new QueryBuilder(Connection::make($config['database']));
diff --git a/bootstrap/Functions.php b/bootstrap/Functions.php
new file mode 100644
index 0000000..52ec992
--- /dev/null
+++ b/bootstrap/Functions.php
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * Helper Functions
+ */
+
+function featherIcon($name) {
+ echo file_get_contents(
+ $_SERVER['DOCUMENT_ROOT']
+ . '/..' . '/public/css/fonts/feather-icons/' . $name . '.svg'
+ );
+}