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
2016-10-30 16:52:04
Comments
Leave a Comment

Please login to continue.