Fix the errors while testing router, and create new method login() on Home controller
This commit is contained in:
@@ -8,4 +8,10 @@ class Home
|
||||
echo "This is index of home"; // Nanti di replace sama twig view ke App\Views\Data\pengumuman.html
|
||||
return true;
|
||||
}
|
||||
|
||||
public function login()
|
||||
{
|
||||
echo "You have to login"; // Nanti di replace sama twig view ke App\Views\Access\login.html
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user