base\Controller getModules()

getModules() public method

Returns all ancestor modules of this controller.

The first module in the array is the outermost one (i.e., the application instance), while the last is the innermost one.

public yii\base\Module[] getModules ( )
return yii\base\Module[]

All ancestor modules that this controller is located within.

doc_Yii
2016-10-30 16:51:25
Comments
Leave a Comment

Please login to continue.