first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . "/../Helper/Input.php";
|
||||
require_once __DIR__ . "/../BusinessLogic/RemoveTodoList.php";
|
||||
|
||||
function viewRemoveTodoList()
|
||||
{
|
||||
echo "MENGHAPUS TODO" . PHP_EOL;
|
||||
|
||||
$pilihan = input("Nomor (x untuk batalkan)");
|
||||
|
||||
if ($pilihan == "x") {
|
||||
echo "Batal menghapus todo" . PHP_EOL;
|
||||
} else {
|
||||
$success = removeTodoList($pilihan);
|
||||
|
||||
if ($success) {
|
||||
echo "Sukses menghapus todo nomor $pilihan" . PHP_EOL;
|
||||
} else {
|
||||
echo "Gagal menghapus todo nomor $pilihan" . PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user