first commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . "/../Model/TodoList.php";
|
||||
require_once __DIR__ . "/../Helper/Input.php";
|
||||
require_once __DIR__ . "/../BusinessLogic/AddTodoList.php";
|
||||
|
||||
function viewAddTodoList()
|
||||
{
|
||||
echo "MENAMBAH TODO" . PHP_EOL;
|
||||
|
||||
$todo = input("Todo (x untuk batal)");
|
||||
|
||||
if ($todo == "x") {
|
||||
echo "Batal menambah todo" . PHP_EOL;
|
||||
} else {
|
||||
addTodoList($todo);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user