getModuleName() . '/layouts/scripts/'; Zend_Layout::getMvcInstance()->setLayoutPath( $layoutPath ); // Configure the error plugin to use the loaded module // so we can use module-specific error handling $frontController = Zend_Controller_Front::getInstance(); $errorPlugin = $frontController->getPlugin( 'Zend_Controller_Plugin_ErrorHandler' ); $errorPlugin->setErrorHandlerModule( $request->getModuleName() ); } }