22 lines
484 B
PHP
22 lines
484 B
PHP
<?php
|
|
namespace App\Controllers;
|
|
|
|
use Core\View;
|
|
|
|
class Home
|
|
{
|
|
public function index()
|
|
{
|
|
echo "This is index of home"; // Nanti di replace sama twig view ke App\Views\Data\pengumuman.html
|
|
View::render('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
|
|
View::render('Access/login.html');
|
|
return true;
|
|
}
|
|
}
|