might have fixed the issue
This commit is contained in:
parent
2f58e65ad3
commit
ed609942c2
@ -69,8 +69,8 @@ class MVCController{
|
|||||||
//check if testaction is valid
|
//check if testaction is valid
|
||||||
if(file_exists($this->testaction)){
|
if(file_exists($this->testaction)){
|
||||||
//execute testaction
|
//execute testaction
|
||||||
require_once($this->testaction);
|
//require_once($this->testaction);
|
||||||
$testactionClassname = "TA_".$_POST['testaction'];
|
$testactionClassname = "model\testactions\\". "TA_".$_POST['testaction'];
|
||||||
$testactionInstance = new $testactionClassname();
|
$testactionInstance = new $testactionClassname();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace model\testactions;
|
namespace model\testactions;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
use PDOException;
|
||||||
class TA_CreateDB extends TestAction{
|
class TA_CreateDB extends TestAction{
|
||||||
function TA_CreateDB(){
|
function TA_CreateDB(){
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace model\testactions;
|
namespace model\testactions;
|
||||||
use controller\db\Database;
|
use controller\db\Database;
|
||||||
|
use PDO;
|
||||||
|
use PDOException;
|
||||||
class TA_PopulateDB extends TestAction{
|
class TA_PopulateDB extends TestAction{
|
||||||
function TA_PopulateDB(){
|
function TA_PopulateDB(){
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace model\testactions;
|
namespace model\testactions;
|
||||||
|
use PDO;
|
||||||
class TA_TestSQLConnection extends TestAction{
|
class TA_TestSQLConnection extends TestAction{
|
||||||
function __construct(){
|
function __construct(){
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user