base\View findViewFile()

findViewFile() protected method

Finds the view file based on the given view name.

protected string findViewFile ( $view, $context = null )
$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 yii\base\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.

throws yii\base\InvalidCallException

if a relative view name is given while there is no active context to determine the corresponding view file.

doc_Yii
2016-10-30 16:52:34
Comments
Leave a Comment

Please login to continue.