public render ( string $view, array $params = [], object $context = null ) : string | ||
$view | string | the view name. |
$params | array | the parameters (name-value pairs) that will be extracted and made available in the view file. |
$context | object | the context to be assigned to the view and can later be accessed via [[context]] in the view. If the context implements [[ViewContextInterface]], it may also be used to locate the view file corresponding to a relative view name. |
return | string | the rendering result |