Update createArticle.php
This commit is contained in:
@@ -6,6 +6,12 @@
|
|||||||
include_once $abs_path . '/php/model/ArticleManagerDAO.php';
|
include_once $abs_path . '/php/model/ArticleManagerDAO.php';
|
||||||
include_once $abs_path . '/php/model/ArticleManager.php';
|
include_once $abs_path . '/php/model/ArticleManager.php';
|
||||||
|
|
||||||
|
try {
|
||||||
|
$articleManager = new ArticleManager();
|
||||||
|
}catch (Exception $e){
|
||||||
|
die("Fehler bei der Initialisierung des Artikel-Managers: " . $e->getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
if(isset($_POST['title']) && isset($_POST['content']) && isset($_POST['category'])) {
|
if(isset($_POST['title']) && isset($_POST['content']) && isset($_POST['category'])) {
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user