Beitrag erstellen #13
@@ -16,7 +16,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
|
|||||||
$tags = $_POST["tags"];
|
$tags = $_POST["tags"];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
//$articleManager = ArticleManager::getInstance();
|
$articleManager = ArticleManager::getInstance();
|
||||||
//$articleManager->addArticle($title, $content, $author, $category, $tags);
|
//$articleManager->addArticle($title, $content, $author, $category, $tags);
|
||||||
$articleManager->addArticle("Test", "Testkontent", "informatik", "max.mustermann", "Apfel, Birne");
|
$articleManager->addArticle("Test", "Testkontent", "informatik", "max.mustermann", "Apfel, Birne");
|
||||||
} catch (Exception $e){
|
} catch (Exception $e){
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class LocalArticleManager implements ArticleManagerDAO {
|
|||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->file = 'data/articles.json';
|
$this->file = __DIR__ . '/../../data/articles.json';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user