diff options
| author | Syndamia <kamen@syndamia.com> | 2025-01-25 19:59:06 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-01-25 19:59:25 +0200 |
| commit | bd2b3acd9c4f54fc13d341b977371393be50fbd6 (patch) | |
| tree | b01fc6ba9338cdac5ff5a12a460ba7842569d387 /views | |
| parent | decc7e47146584dcc02171793072462ce0f817fe (diff) | |
| download | nowayforward_human-bd2b3acd9c4f54fc13d341b977371393be50fbd6.tar nowayforward_human-bd2b3acd9c4f54fc13d341b977371393be50fbd6.tar.gz nowayforward_human-bd2b3acd9c4f54fc13d341b977371393be50fbd6.zip | |
feat(views/meta): include_once instead of include
Diffstat (limited to 'views')
| -rw-r--r-- | views/meta.php | 11 |
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'; } |
