base\Module hasModule()

hasModule() public method

Checks whether the child module of the specified ID exists.

This method supports checking the existence of both child and grand child modules.

public boolean hasModule ( $id )
$id string

Module ID. For grand child modules, use ID path relative to this module (e.g. admin/content).

return boolean

Whether the named module exists. Both loaded and unloaded modules are considered.

doc_Yii
2016-10-30 16:52:06
Comments
Leave a Comment

Please login to continue.