itskp-odense/Backend/controller/edit.php

11 lines
151 B
PHP

<?php
require "../../bootstrap.php";
use Backend\Model\Post;
if(isset($_GET['id'])){
$id = $_GET['id'];
$post = Post::query()->find($id);
}