Play around with the rendering

This commit is contained in:
Tim
2023-08-15 13:56:04 +02:00
parent 24683e70a8
commit 18848e041f
7 changed files with 43 additions and 18 deletions

View File

@ -72,7 +72,7 @@ class BaseKernel
echo $response->getBody();
echo '<pre>';
echo '<pre>Log:<br>';
foreach ($log->getLogs() as $log) {
echo sprintf('%s<br>', $log);
}

View File

@ -11,7 +11,7 @@ class BaseView implements ViewInterface
public function __construct(
private readonly string $path,
private readonly array $data = [],
private ?string $extends = null,
protected ?string $extends = null,
)
{
}
@ -38,7 +38,7 @@ class BaseView implements ViewInterface
return $output;
}
public function getRoute(string $class, string $method, array $params = []): string
protected function getRoute(string $class, string $method, array $params = []): string
{
return $this->helper->getRouter()->toUri($class, $method, $params);
}