Receive data from database and pass to html using twig

This commit is contained in:
2017-09-04 16:20:27 +07:00
parent aa60edbbf0
commit e1d70ed8f4
6 changed files with 57 additions and 32 deletions

View File

@@ -8,7 +8,8 @@ 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');
$posts = new Posts();
$posts->index();
return true;
}