Closed cdekok closed 7 years ago
Ok so you can do something like:
$content = $this->view->fetch('stuff.phtml', [
'paginator' => $paginator
]);
$response = $this->view->render($response, 'layout.phtml', ['content' => $content]);
This should probably be documented.
It would be nice if there was a layout option, to not repeat html tags. Like this https://github.com/slimphp/PHP-View/pull/15/files