diff --git a/dev_mvc/controller/MVCController.php b/dev_mvc/controller/MVCController.php index 73ef8ea..d231b1a 100644 --- a/dev_mvc/controller/MVCController.php +++ b/dev_mvc/controller/MVCController.php @@ -12,28 +12,28 @@ class MVCController{ self::$mvcController = $this; //prepare current view and view model if(isset($_GET['p']) && $_GET['p'] != ''){ - $this->view = ROOT_DIR."./view/webcontent/content_".$_GET['p'].".php"; - $this->viewmodel = ROOT_DIR."./viewmodel/viewmodel_".$_GET['p'].".php"; + $this->view = ROOT_DIR."/view/webcontent/content_".$_GET['p'].".php"; + $this->viewmodel = ROOT_DIR."/viewmodel/viewmodel_".$_GET['p'].".php"; } else{ - $this->view = ROOT_DIR."./view/webcontent/content_home.php"; - $this->viewmodel = ROOT_DIR."./viewmodel/viewmodel_home.php"; + $this->view = ROOT_DIR."/view/webcontent/content_home.php"; + $this->viewmodel = ROOT_DIR."/viewmodel/viewmodel_home.php"; } //prepare current action model if(isset($_POST['action'])){ - $this->model = ROOT_DIR."./model/actions/model_".$_POST['action'].".php"; + $this->model = ROOT_DIR."/model/actions/model_".$_POST['action'].".php"; } else if(isset($_GET['action'])){ - $this->model = ROOT_DIR."./model/actions/model_".$_GET['action'].".php"; + $this->model = ROOT_DIR."/model/actions/model_".$_GET['action'].".php"; } else{ - $this->model = ROOT_DIR."./model/actions/model_empty.php"; + $this->model = ROOT_DIR."/model/actions/model_empty.php"; } if(isset($_POST['testaction'])){ - $this->testaction = ROOT_DIR."./model/testactions/TA_".$_POST['testaction'].".php"; + $this->testaction = ROOT_DIR."/model/testactions/TA_".$_POST['testaction'].".php"; } @@ -44,8 +44,8 @@ class MVCController{ } function overrideView($view_target):void { - $this->view = ROOT_DIR."./view/webcontent/content_".$view_target.".php"; - $this->viewmodel = ROOT_DIR."./viewmodel/viewmodel_".$view_target.".php"; + $this->view = ROOT_DIR."/view/webcontent/content_".$view_target.".php"; + $this->viewmodel = ROOT_DIR."/viewmodel/viewmodel_".$view_target.".php"; $this->viewOverridden = true; } function executeAction():void @@ -102,7 +102,7 @@ class MVCController{ include_once($this->view); } else{ - include_once(ROOT_DIR."./view/webcontent/content_404.php"); + include_once(ROOT_DIR."/view/webcontent/content_404.php"); echo("view: ".$this->view." not found."); } } diff --git a/dev_mvc/controller/UserSession.php b/dev_mvc/controller/UserSession.php index 83e4633..9d9c60a 100644 --- a/dev_mvc/controller/UserSession.php +++ b/dev_mvc/controller/UserSession.php @@ -1,5 +1,5 @@ executeModel(); if(!isset($_POST['testaction'])){ - include_once(ROOT_DIR."./view/content_pagetemplate.php"); + include_once(ROOT_DIR."/view/content_pagetemplate.php"); } //require_once('aaaadea'); //http_response_code(200); diff --git a/dev_mvc/model/actions/model_create_reply.php b/dev_mvc/model/actions/model_create_reply.php index 0a3cd08..e4bcbfc 100644 --- a/dev_mvc/model/actions/model_create_reply.php +++ b/dev_mvc/model/actions/model_create_reply.php @@ -1,8 +1,8 @@ uid; diff --git a/dev_mvc/model/actions/model_create_thread.php b/dev_mvc/model/actions/model_create_thread.php index 24a04bc..eeccadf 100644 --- a/dev_mvc/model/actions/model_create_thread.php +++ b/dev_mvc/model/actions/model_create_thread.php @@ -1,8 +1,8 @@ uid; diff --git a/dev_mvc/model/actions/model_do_register.php b/dev_mvc/model/actions/model_do_register.php index e086577..d731a55 100644 --- a/dev_mvc/model/actions/model_do_register.php +++ b/dev_mvc/model/actions/model_do_register.php @@ -1,8 +1,8 @@ @@ -10,7 +10,7 @@ require_once("index.php");