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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.