aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/meta.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/views/meta.php b/views/meta.php
index 5011fc5..9a50aa8 100644
--- a/views/meta.php
+++ b/views/meta.php
@@ -1,16 +1,17 @@
<?php
-include "../header.php";
+include_once "../header.php";
function end_page() {
- include "../footer.php";
+ include_once "../footer.php";
}
+include_once "../../models/database.php";
foreach (glob("../../models/*.php") as $filename) {
- include $filename;
+ include_once $filename;
}
function runController(string $name) {
- include "../../controllers/$name.php";
- include '../../controllers/meta.php';
+ include_once "../../controllers/$name.php";
+ include_once '../../controllers/meta.php';
}