This repository has been archived on 2024-03-08. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
website-old/storage/framework/Controller.php
2022-12-05 23:00:28 +01:00

16 lines
No EOL
291 B
PHP

<?php
namespace framework;
class Controller
{
public static function tab(): ?string
{
return get_called_class()::$tab ?? null;
}
function view(string $view, array $data = []): void
{
echo view($view, array_merge($data, ['tab' => self::tab()]));
}
}