base\Application setBasePath()

setBasePath() public method

Sets the root directory of the application and the @app alias.

This method can only be invoked at the beginning of the constructor.

public void setBasePath ( $path )
$path string

The root directory of the application.

throws yii\base\InvalidParamException

if the directory does not exist.

doc_Yii
2016-10-30 16:50:54
Comments
Leave a Comment

Please login to continue.