From 8977f8cec4ca88f13528792a453eb27328e22845 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Sun, 14 Nov 2021 08:49:37 +0000 Subject: Add description to todo --- public/view/index.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 public/view/index.php (limited to 'public/view/index.php') diff --git a/public/view/index.php b/public/view/index.php new file mode 100644 index 0000000..798cefd --- /dev/null +++ b/public/view/index.php @@ -0,0 +1,37 @@ +find($id); + +if ($todo === null) { + respondAndExit(404, 'Not Found'); +} + +$html = $template->render('view', compact( + 'todo' +)); + +respondAndExit(200, 'OK', $html); -- cgit v1.2.3-13-gbd6f