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