showArticle.php + showArticle-controller.php Implementation
This commit is contained in:
+14
-8
@@ -1,12 +1,18 @@
|
||||
<?php
|
||||
session_start();
|
||||
require_once 'php/model/Article.php';
|
||||
require_once 'php/model/ArticleManager.php';
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<!--
|
||||
Seite: Anzeige für Beiträge
|
||||
Funktion: Stellt einen übergebenen Beitrag dar.
|
||||
-->
|
||||
|
||||
<?php
|
||||
include_once __DIR__ . '/../php/controller/showArticle-controller.php';
|
||||
?>
|
||||
<main>
|
||||
|
||||
<h1><?php if (isset($title)) {echo $title;} ?></h1>
|
||||
|
||||
<p>
|
||||
<?php if (isset($content)) {echo $content;} ?>
|
||||
</p>
|
||||
|
||||
</main>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user