render guest list

This commit is contained in:
Chris Smith
2019-03-05 11:18:43 -06:00
parent dc609109e3
commit 4dd2173947
2 changed files with 22 additions and 14 deletions

View File

@@ -125,7 +125,9 @@ $router->post('/checkout', function () {
$router->get('/manage/{uuid}', function ($uuid) {
$order = R::findOne('orders', ' uuid = ?', [$uuid]);
$guests = R::findAll('guests', ' order_id = ?', [$order->id]);
var_dump($order,$guests);
include 'views/common/head.php';
include 'views/guestlist.php';
include 'views/common/footer.php';
});
// Run it!