Configure html files with twig
This commit is contained in:
@@ -7,14 +7,14 @@ class Home
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
echo "This is index of home"; // Nanti di replace sama twig view ke App\Views\Data\pengumuman.html
|
||||
// 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
|
||||
// echo "You have to login"; // Nanti di replace sama twig view ke App\Views\Access\login.html
|
||||
View::render('Access/login.html');
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -7,14 +7,14 @@ class Posts
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
echo "This is index of posts."; // Nanti di replace sama twig view ke App\Views\Data\pengumuman.html
|
||||
// echo "This is index of posts."; // Nanti di replace sama twig view ke App\Views\Data\pengumuman.html
|
||||
View::render('Data/pengumuman.html');
|
||||
return true;
|
||||
}
|
||||
|
||||
public function entry()
|
||||
{
|
||||
echo "You can entry new data here."; // Nanti di replace sama twig view ke App\Views\Data\entry_pengumuman.html
|
||||
// echo "You can entry new data here."; // Nanti di replace sama twig view ke App\Views\Data\entry_pengumuman.html
|
||||
View::render('Data/entry_pengumuman.html');
|
||||
return true;
|
||||
}
|
||||
@@ -22,7 +22,7 @@ class Posts
|
||||
public function edit($id = null)
|
||||
{
|
||||
if ($id) {
|
||||
echo "You can edit exists data with id $id here"; // Nanti di replace sama twig view ke App\Views\Data\edit_pengumuman.html
|
||||
// echo "You can edit exists data with id $id here"; // Nanti di replace sama twig view ke App\Views\Data\edit_pengumuman.html
|
||||
View::render('Data/edit_pengumuman.html');
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user