for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace pjpawel\Magis\View;
use pjpawel\Magis\Exception\TemplateException;
/**
* @author Paweł Podgórski <[email protected]>
*/
class DirectView extends AbstractView
{
* @inheritDoc
public function render(string $template, array $params = []): string
$template = $this->loadTemplate($template);
$this->params = array_merge_recursive($params, $this->params);
return $this->renderPhpFile($template, $this->params);
}