예제 #1
0
	public static function init(Config $config, $appdir, $pluginsDir)
	{
		self::loadDir($pluginsDir, $config->get('enabled_plugins'));
		self::loadDir($appdir, null);
		self::$_resources = array();		
		I18n::addSearchDir('coorg', 'coorg');
		self::$_pluginDir = $pluginsDir;
		self::$_appdir = $appdir;
		self::$_config = $config;
		spl_autoload_register(array('CoOrg', 'loadModel'));
		self::loadPluginInfo('relations');
	}