src/Base/Widget.php
public function renderFile($file, $params = [], $view = null)
    {
        if ($view !== null) {
            $this->setView($view);
        }
        return $this->getView()->renderFile($file, $params, $this);
    }
public function renderFile($file, $params = [], $view = null)
    {
        if ($view !== null) {
            $this->setView($view);
        }
        return $this->getView()->renderFile($file, $params, $this);
    }
Renders a view file.
@param string                 $file the view file to be rendered. This can be either a file path or a [path alias](guide:concept-aliases).
@param array                  $params the parameters (name-value pairs) that should be made available in the view.
@param Reaction\Web\View|null $view
@return string the rendering result.