setBasePath() public method
Sets the root directory of the module.
This method can only be invoked at the beginning of the constructor.
public void setBasePath ( $path ) | ||
---|---|---|
$path | string |
The root directory of the module. This can be either a directory name or a path alias. |
throws | yii\base\InvalidParamException |
if the directory does not exist. |
Please login to continue.