From e334c472fb4be44feec3a73402fc4a2b062cbfc0 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 21 Oct 2006 19:44:22 +0000 Subject: --- user_guide/database/configuration.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'user_guide/database/configuration.html') diff --git a/user_guide/database/configuration.html b/user_guide/database/configuration.html index ea287d770..830f81883 100644 --- a/user_guide/database/configuration.html +++ b/user_guide/database/configuration.html @@ -12,7 +12,7 @@ @@ -65,7 +65,7 @@ Configuration

Database Configuration

-

Code Igniter has a config file that lets you store your database connection values (username, password, database name, etc.). +

Code Igniter has a config file that lets you store your database connection values (username, password, database name, etc.). The config file is located at:

application/config/database.php

@@ -82,8 +82,8 @@ $db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = FALSE;
$db['default']['active_r'] = TRUE; -

The reason we use a multi-dimensional array rather than a more simple one is to permit you to optionally store -multiple sets of connection values. If, for example, you run multiple environments (development, production, test, etc.) +

The reason we use a multi-dimensional array rather than a more simple one is to permit you to optionally store +multiple sets of connection values. If, for example, you run multiple environments (development, production, test, etc.) under a single installation, you can set up a connection group for each, then switch between groups as needed. For example, to set up a "test" environment you would do this:

@@ -97,7 +97,7 @@ $db['test']['pconnect'] = TRUE;
$db['test']['db_debug'] = FALSE;
$db['test']['active_r'] = TRUE; - +

Then, to globally tell the system to use that group you would set this variable located in the config file:

$active_group = "test"; @@ -108,15 +108,15 @@ for the primary connection, but it too can be renamed to something more relevant

Explanation of Values:

-- cgit v1.2.3-24-g4f1b