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
19
views/models/SettingsTemplate.php
Normal file
19
views/models/SettingsTemplate.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
namespace Views\Models;
|
||||
|
||||
use \Helpers\Following;
|
||||
use \Helpers\Settings;
|
||||
|
||||
/**
|
||||
* Exclusive for /settings
|
||||
*/
|
||||
class SettingsTemplate extends BaseTemplate {
|
||||
public array $proxy_elements = [];
|
||||
public array $following = [];
|
||||
|
||||
function __construct() {
|
||||
parent::__construct('Settings');
|
||||
$this->proxy_elements = Settings::PROXY;
|
||||
$this->following = Following::get();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue