Receive data from database and pass to html using twig
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user