2021-06-02 11:27:13 +00:00
|
|
|
<?php
|
|
|
|
require "../Backend/controller/accessControl.php";
|
2021-06-07 12:27:43 +00:00
|
|
|
require "../bootstrap.php";
|
|
|
|
use Backend\Model\Post;
|
|
|
|
$id = $_GET['id'];
|
|
|
|
$data = Post::query()->find($id);
|
2021-06-02 11:27:13 +00:00
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Home</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2021-06-07 12:27:43 +00:00
|
|
|
|
2021-06-03 10:50:28 +00:00
|
|
|
|
2021-06-02 11:27:13 +00:00
|
|
|
<form action="../Backend/controller/update.php" method="POST">
|
2021-06-07 12:27:43 +00:00
|
|
|
<input type="number" name="id" hidden value="<?php echo $id ?>">
|
|
|
|
<input type="text" name="upTitle" placeholder="Title" value="<?php echo $data->title ?>">
|
|
|
|
<input type="text" name="upDescription" placeholder="Description" value="<?php echo $data->description; ?>">
|
2021-06-02 11:27:13 +00:00
|
|
|
<input type="submit" name="update">
|
|
|
|
</form>
|
2021-06-03 10:50:28 +00:00
|
|
|
|
|
|
|
|
2021-06-02 11:27:13 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|