Application/BaseApplication.php
protected function loadConfig() {
		$app_root = Registry::getInstance()->app_root;
		if (file_exists($app_root . '/Application/config.php')) {
			require_once $app_root . '/Application/config.php';
		}

		if (file_exists($app_root . '/Application/localconfig.php')) {
			require_once $app_root . '/Application/localconfig.php';
		}

		if (isset($config)) {
			Registry::getInstance()->config = $config;
		} else {
			Registry::getInstance()->config = [];
		}
	}
protected function loadConfig() {
		$app_root = Registry::getInstance()->app_root;
		if (file_exists($app_root . '/Application/config.php')) {
			require_once $app_root . '/Application/config.php';
		}

		if (file_exists($app_root . '/Application/localconfig.php')) {
			require_once $app_root . '/Application/localconfig.php';
		}

		if (isset($config)) {
			Registry::getInstance()->config = $config;
		} else {
			Registry::getInstance()->config = [];
		}
	}
protected function loadConfig ( ) { $ app_root = Registry :: getInstance ( ) -> app_root ; if ( file_exists ( $ app_root . '/Application/config.php' ) ) { require_once $ app_root . '/Application/config.php' ; } if ( file_exists ( $ app_root . '/Application/localconfig.php' ) ) { require_once $ app_root . '/Application/localconfig.php' ; } if ( isset ( $ config ) ) { Registry :: getInstance ( ) -> config = $ config ; } else { Registry :: getInstance ( ) -> config = [ ] ; } }
Load application config
Load application config