0 follower

Interface Yiisoft\View\TemplateRendererInterface

Implemented byYiisoft\View\PhpTemplateRenderer

TemplateRendererInterface is the interface that should be implemented by view template renderers.

Public Methods

Hide inherited methods

Method Description Defined By
render() Renders a template file. Yiisoft\View\TemplateRendererInterface

Method Details

Hide inherited methods

render() public abstract method

Renders a template file.

{@see \Yiisoft\View\View} and {@see \Yiisoft\View\WebView} invoke this method whenever it tries to render a view. The classes must implement this method to render the given template file.

public abstract string render ( Yiisoft\View\ViewInterface $view, string $template, array $parameters )
$view Yiisoft\View\ViewInterface

The view instance used for rendering the file.

$template string

The template file to render.

$parameters array

The parameters to be passed to the view file.

return string

The rendering result.

                public function render(ViewInterface $view, string $template, array $parameters): string;