Finds the view file based on the given view name.
protected findViewFile ( string $view, object $context = null ) : string | ||
$view | string | the view name or the path alias of the view file. Please refer to [[render()]] on how to specify this parameter. |
$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 view file path. Note that the file may not exist. |