Phlyty\View\ViewInterface::render PHP Method

render() public method

Render a template, optionally passing a view model/variables
public render ( string $template, mixed $viewModel = [] ) : string
$template string
$viewModel mixed
return string
    public function render($template, $viewModel = []);
ViewInterface