Registering twig to project

This commit is contained in:
2017-09-04 14:08:36 +07:00
parent 81510beb10
commit 7fa99eb6d8
4 changed files with 27 additions and 1 deletions

View File

@@ -1,17 +1,21 @@
<?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;
}
}