diff --git a/dev_mvc/controller/MVCController.php b/dev_mvc/controller/MVCController.php index 8954dc2..7560fb5 100644 --- a/dev_mvc/controller/MVCController.php +++ b/dev_mvc/controller/MVCController.php @@ -69,8 +69,8 @@ class MVCController{ //check if testaction is valid if(file_exists($this->testaction)){ //execute testaction - require_once($this->testaction); - $testactionClassname = "TA_".$_POST['testaction']; + //require_once($this->testaction); + $testactionClassname = "model\testactions\\". "TA_".$_POST['testaction']; $testactionInstance = new $testactionClassname(); } diff --git a/dev_mvc/model/testactions/TA_CreateDB.php b/dev_mvc/model/testactions/TA_CreateDB.php index 945d4a9..6585e23 100644 --- a/dev_mvc/model/testactions/TA_CreateDB.php +++ b/dev_mvc/model/testactions/TA_CreateDB.php @@ -1,6 +1,7 @@