function init() { /* Load the config */ try { $config = new Core_Config(); } catch (Exception $e) { throw $e; } Zend_Registry::set('config', $config); $config->init(); Core_Common::raiseMemoryLimitIfNecessary(); /* Load the database */ try { $db = Core_Db::getInstance(); } catch (Exception $e) { throw $e; } Zend_Registry::set('db', $db); /* Load the plugins */ $moduleManager = Core_ModuleManager::getInstance(); $moduleManager->loadModules(); Core_Common::createAccessObject(); /* Load the events */ Core_PostEvent('FrontController.initAuthenticationObject'); try { $authAdapter = Zend_Registry::get('auth'); } catch (Exception $e) { throw new Exception("Authentication object cannot be found in the Registry. Maybe the Login plugin is not activated?\n <br />You can activate the plugin by adding:<br />\n <code>Plugins[] = Login</code><br />\n under the <code>[Plugins]</code> section in your config/config.inc.php"); } Zend_Registry::get('access')->reloadAccess($authAdapter); $moduleManager->postLoadModules(); }