Move files, complete PHP migration
The application works the same way as the F# version
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
use MyPrayerJournal\{Layout, Table, UI};
|
||||
use BitBadger\PDODocument\RemoveFields;
|
||||
use MyPrayerJournal\Table;
|
||||
use MyPrayerJournal\UI\{Component, Layout};
|
||||
|
||||
require '../../../start.php';
|
||||
require '../../start.php';
|
||||
|
||||
$req = validate_request($_GET['id'], ['GET'], false);
|
||||
$req = validate_request($_GET['id'], ['PATCH'], false);
|
||||
|
||||
RemoveFields::byId(Table::REQUEST, $req->id, ['snoozedUntil']);
|
||||
$req->snoozedUntil = null;
|
||||
|
||||
// TODO: message
|
||||
Layout::bareHead();
|
||||
UI::requestItem($req);
|
||||
Component::requestItem($req);
|
||||
Layout::bareFoot();
|
||||
|
||||
Reference in New Issue
Block a user