base\Module getControllerPath()

getControllerPath() public method

Returns the directory that contains the controller classes according to $controllerNamespace.

Note that in order for this method to return a value, you must define an alias for the root namespace of $controllerNamespace.

public string getControllerPath ( )
return string

The directory that contains the controller classes.

throws yii\base\InvalidParamException

if there is no alias defined for the root namespace of $controllerNamespace.

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

Please login to continue.