diff --git a/app/controllers/RefuelController.php b/app/controllers/RefuelController.php new file mode 100644 index 0000000..b7b2151 --- /dev/null +++ b/app/controllers/RefuelController.php @@ -0,0 +1,9 @@ +getVehiclesByUser($_SESSION['user']['id']); + $this->view('refuel/create', ['title' => "New refuel record", 'vehicles' => $vehicles]); + } +} diff --git a/app/models/Refuel.php b/app/models/Refuel.php new file mode 100644 index 0000000..51b5c1a --- /dev/null +++ b/app/models/Refuel.php @@ -0,0 +1,5 @@ +
= htmlspecialchars($vehicle['registration_plate']) ?>
+= htmlspecialchars($vehicle['fuel_type']) ?>
= htmlspecialchars($vehicle['note'] ?? "") ?>