Interface Yiisoft\View\TemplateRendererInterface
| Implemented by | Yiisoft\View\PhpTemplateRenderer |
|---|
TemplateRendererInterface is the interface that should be implemented by view template renderers.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| render() | Renders a template file. | Yiisoft\View\TemplateRendererInterface |
Method Details
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;
Signup or Login in order to comment.