diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-01-11 12:35:47 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-01-11 12:35:47 +0100 |
commit | 19985dbb8c0aa66dc4bf7905abc1148de909097d (patch) | |
tree | 2cd5a5d20d7e80fc2a51adf60d838d8a2c40999e /main/survey/index.php | |
download | 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.gz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.bz2 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.lz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.xz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.zst 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.zip |
Diffstat (limited to '')
-rw-r--r-- | main/survey/index.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/survey/index.php b/main/survey/index.php new file mode 100644 index 0000000..8c1769b --- /dev/null +++ b/main/survey/index.php @@ -0,0 +1,41 @@ +<?php
+
+// pod do /main/survey/ - kot ROOT direktorij
+define('MAIN', __DIR__ . DIRECTORY_SEPARATOR);
+
+//direktorij app
+define('APP', MAIN . 'app' . DIRECTORY_SEPARATOR);
+
+
+require_once('../../function.php');
+
+// Register composer autoload
+require_once('../../vendor/autoload.php');
+
+
+// Nastavitve, kjer določamo PHP debuging/error
+require APP . 'config.php';
+new App\Controllers\Controller();
+
+// Definicija vseh spremenljiv, ki jih uporabljamo med razredi
+new App\Controllers\VariableClass();
+require_once(APP.'global_function.php');
+
+
+// Začasno vpisemo, ker View še ni posebej
+ob_start();
+
+header('Cache-Control: no-cache');
+header('Pragma: no-cache');
+
+echo '<!DOCTYPE html><html class="no_js">';
+
+// začetek aplikacije
+new \App\Controllers\SurveyController();
+
+echo '</body>';
+echo '</html>';
+
+ob_flush();
+
+?>
|