20 lines
606 B
PHP
20 lines
606 B
PHP
<?php
|
|
session_start();
|
|
require_once '../model/Article.php';
|
|
require_once '../model/ArticleManager.php';
|
|
|
|
if (isset($_GET["id"])){
|
|
try {
|
|
$articleManager = ArticleManager::getInstance();
|
|
$article = $articleManager->getArticle($_GET["id"]);
|
|
$title = $article->getTitle();
|
|
$content = $article->getContent();
|
|
$category = $article->getCategory();
|
|
$author = $article->getAuthor();
|
|
$tags = $article->getTags();
|
|
} catch (Exception $e){
|
|
$_SESSION["message"] = "internal_error";
|
|
echo "Fehler aufgetreten: " . $e->getMessage();
|
|
}
|
|
}
|
|
?>
|