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. |
Please login to continue.