Hi,
http://framework.zend.com/manual/2.0/en/modules/zend.module-manager.module-class.html
<http://framework.zend.com/manual/2.0/en/modules/zend.module-manager.module-class.html>
  
may in the doc in place of 
public function modulesLoaded(Event $e)
{
     // This method is called once all modules are loaded.
     $moduleManager = $e->getTarget();
     $loadedModules = $moduleManager->getLoadedModules();
     // To get the configuration from another module named 'FooModule'
     $config = $moduleManager->getModule('FooModule')->getConfig();
}
it will be better
public function modulesLoaded(Event $e)
{
     // This method is called once all modules are loaded.
     $moduleManager = $e->getTarget();
     $loadedModules = $moduleManager->getLoadedModules();
     // To get the configuration from another module named 'FooModule'
     $config = $moduleManager->getModule('Foo)->getConfig();
}

just half an hour to figure it out :)

Bye







--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/The-Module-Class-Sample-Usage-of-loadModules-post-Event-tp4658948.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com


Reply via email to