Templates based on classes, cache custom paths
This commit is contained in:
parent
dde4185ad7
commit
6d6ec109ca
26 changed files with 236 additions and 156 deletions
14
views/models/BaseTemplate.php
Normal file
14
views/models/BaseTemplate.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
namespace Views\Models;
|
||||
|
||||
/**
|
||||
* Base for all templates, needs a Title to set
|
||||
*/
|
||||
class BaseTemplate {
|
||||
public string $title;
|
||||
public string $version;
|
||||
|
||||
function __construct(string $title) {
|
||||
$this->title = $title;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue