testing
This commit is contained in:
@@ -20,7 +20,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
|
||||
$author = "max.mustermann"; // TODO: später aus Session den angemeldeten Nutzer beziehen.
|
||||
$tags = $_POST["tags"];
|
||||
|
||||
//$articleManager->addArticle($title, $content, $category, $author, $tags);
|
||||
//$articleManager->addArticle($title, $content, $author, $category, $tags);
|
||||
$articles[] = [
|
||||
//"id" => count($articles)+1,
|
||||
"title" => $title,
|
||||
|
||||
@@ -9,7 +9,7 @@ require_once 'Article.php';
|
||||
*/
|
||||
class LocalArticleManager implements ArticleManagerDAO {
|
||||
|
||||
private $file = 'data/articles.json';
|
||||
private $file = '../../data/articles.json';
|
||||
private static $instance = null;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user