Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

get module name

How can I get module name in application:afterStartModule event ?



42.3k
Accepted
answer

The event will recieve two params: $application, $moduleInterface

You should be able to use $application->dispatcher->getModuleName(); or $application->router->getModuleName();



2.4k

tnx a lot



2.4k
edited Sep '15

but $application->dispatcher->getModuleName() return empty, the second one return true!