refactoring
This commit is contained in:
@@ -2,7 +2,19 @@
|
||||
Seite: Beitrag erstellen
|
||||
Inhalt: Formular für die Erstellung eines neuen Beitrags
|
||||
-->
|
||||
<form id="editor-form" class="wp-editor-scope editor-container">
|
||||
<?php
|
||||
include_once 'php/model/DatabaseDAO.php';
|
||||
include_once 'php/model/FileDatabase.php';
|
||||
|
||||
if(isset($_POST['post-title']) && isset($_POST['post-content']) && isset($_POST['post-category'])) {
|
||||
|
||||
}else{
|
||||
// TODO: Exception werfen.
|
||||
echo"Fehler!";
|
||||
}
|
||||
?>
|
||||
|
||||
<form method="post" id="editor-form" class="wp-editor-scope editor-container">
|
||||
|
||||
<main class="editor-main">
|
||||
<input type="text" id="post-title" name="title" placeholder="Titel hier eingeben" required>
|
||||
|
||||
Reference in New Issue
Block a user