getModule() public method
Retrieves the child module of the specified ID.
This method supports retrieving both child modules and grand child modules.
See also hasModule().
public yii\base\Module|null getModule ( $id, $load = true ) | ||
---|---|---|
$id | string |
Module ID (case-sensitive). To retrieve grand child modules, use ID path relative to this module (e.g. |
$load | boolean |
Whether to load the module if it is not yet loaded. |
return | yii\base\Module|null |
The module instance, |
Please login to continue.