renderFile() public method
Renders a view file. If $theme is enabled (not null), it will try to render the themed version of the view file as long as it is available. The method will call yii\helpers\FileHelper::localize() to localize the view file. If renderer is enabled (not null), the method will use it to render the view file. Otherwise, it will simply include the view file as a normal PHP file, capture its output and return it as a string.
public string renderFile ( $viewFile, $param