Implement simple PHP based view renderer

This commit is contained in:
Tim
2023-08-15 03:02:55 +02:00
parent 9b8985640c
commit c80dcd2860
9 changed files with 83 additions and 9 deletions

10
app/Template/base.php Normal file
View File

@ -0,0 +1,10 @@
<?php /** @var $this \Ardent\Undercurrent\View\BaseView */ ?>
<html>
<head>
<title>TOSTI MAN KOMT JE HALEN</title>
</head>
<body>
<?= $this->data['slot'] ?>
</body>
</html>

4
app/Template/home.php Normal file
View File

@ -0,0 +1,4 @@
<?php /** @var $this \Ardent\Undercurrent\View\BaseView */ ?>
<?php $this->extends = '/Template/base.php' ?>
<?= $this->data['message'] ?>