getEventManager()->getSharedManager(); $sharedEvents->attach(__NAMESPACE__, MvcEvent::EVENT_DISPATCH , function($e) { $controller = $e->getTarget(); $controller->layout('layout/layout'); }, 100); } public function getConfig() { return include __DIR__ . '/config/module.config.php'; } public function getAutoloaderConfig() { return array( 'Zend\Loader\StandardAutoloader' => array( 'namespaces' => array( __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, ), ), ); } }