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
 | ||||
| 		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(); | ||||
| 		} | ||||
|     	 | ||||
|  | ||||
| @ -1,6 +1,7 @@ | ||||
| <?php | ||||
| namespace model\testactions; | ||||
| use PDO; | ||||
| use PDOException; | ||||
| class TA_CreateDB extends TestAction{ | ||||
|     function TA_CreateDB(){ | ||||
|          | ||||
|  | ||||
| @ -1,6 +1,8 @@ | ||||
| <?php | ||||
| namespace model\testactions; | ||||
| use controller\db\Database; | ||||
| use PDO; | ||||
| use PDOException; | ||||
| class TA_PopulateDB extends TestAction{ | ||||
|     function TA_PopulateDB(){ | ||||
|         parent::__construct(); | ||||
|  | ||||
| @ -1,5 +1,6 @@ | ||||
| <?php | ||||
| namespace model\testactions; | ||||
| use PDO; | ||||
| class TA_TestSQLConnection extends TestAction{ | ||||
|     function __construct(){ | ||||
|         parent::__construct(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user