- WIP on picea-asset
This commit is contained in:
1 parent
8a5f5f052b
commit
b6d7e5fad5
3 files changed
+20
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user