diff --git a/application/controllers/dashboard/Dashboard.php b/application/controllers/dashboard/Dashboard.php new file mode 100644 index 000000000..2769bb8e5 --- /dev/null +++ b/application/controllers/dashboard/Dashboard.php @@ -0,0 +1,55 @@ + 'user:r', + ) + ); + + $this->load->library('AuthLib'); + $this->load->library('WidgetLib'); + + $this->_setAuthUID(); // sets property uid + + $this->setControllerId(); // sets the controller id + } + + // ----------------------------------------------------------------------------------------------------------------- + // Public methods + public function index() + { + $this->load->view('dashboard/dashboard.php', []); + } + // TODO löschen + public function test(){ + echo "
"; print_r('in Dashboard Test function'); echo "";
+ }
+
+ // -----------------------------------------------------------------------------------------------------------------
+ // Private methods
+
+ /**
+ * Retrieve the UID of the logged user and checks if it is valid
+ */
+ private function _setAuthUID()
+ {
+ $this->_uid = getAuthUID();
+
+ if (!$this->_uid) show_error('User authentification failed');
+ }
+
+}
diff --git a/application/views/dashboard/dashboard.php b/application/views/dashboard/dashboard.php
new file mode 100644
index 000000000..3518d769a
--- /dev/null
+++ b/application/views/dashboard/dashboard.php
@@ -0,0 +1,31 @@
+load->view('templates/FHC-Header',
+ array(
+ 'title' => 'FH-Complete',
+ 'bootstrap5' => true,
+ 'fontawesome6' => true,
+ 'axios027' => true,
+ 'restclient' => true,
+ 'vue3' => true,
+ 'customJSModules' => ['public/js/apps/Dashboard.js'],
+ 'customCSSs' => [
+ 'public/css/components/dashboard.css'
+ ],
+ 'navigationcomponent' => true
+ )
+);
+?>
+
+