- WIP on picea-asset

This commit is contained in:
mcndave committed 2023-10-06 19:09:45 -04:00
1 parent 8a5f5f052b
commit b6d7e5fad5
3 files changed
+20 -1

No files matched your search

+5 -1
View File
@@ -51,7 +51,11 @@ trait ControllerTrait {
public function renderRawView(string $view, ?array $variables = null) : string
{
return $this->picea->renderHtml($view, $variables ?? [], $this);
if ( null === $content = $this->picea->renderHtml($view, $variables ?? [], $this) ) {
throw new \RuntimeException("Picea's renderHtml() returned NULL as result ; an error occured within your template `$view`.");
}
return $content;
}
public function renderView(string $view, ?array $variables = null) : ResponseInterface