Play around with the rendering
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user