src/Model.php
protected static function _setDbConnectionConfig(array $config)
	{
		$app = \Slim\Slim::getInstance();
		$cfg = Config::instance();
		$cfg->set_connections($config);
		$cfg->set_default_connection($app->config('mode'));
	}
protected static function _setDbConnectionConfig(array $config)
	{
		$app = \Slim\Slim::getInstance();
		$cfg = Config::instance();
		$cfg->set_connections($config);
		$cfg->set_default_connection($app->config('mode'));
	}
protected static function _setDbConnectionConfig ( array $ config ) { $ app = \ Slim \ Slim :: getInstance ( ) ; $ cfg = Config :: instance ( ) ; $ cfg -> set_connections ( $ config ) ; $ cfg -> set_default_connection ( $ app -> config ( 'mode' ) ) ; }
Sets database configs
@param array $config
@return void
Sets database configs