base\Module setBasePath()

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.

doc_Yii
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.