From c644128fdd49a47d791240e0e38b54cd22412bc5 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 4 Jul 2007 23:54:32 +0000 Subject: fixed validation errors... about a zillion of em. --- user_guide/libraries/config.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'user_guide/libraries/config.html') diff --git a/user_guide/libraries/config.html b/user_guide/libraries/config.html index 350831e0d..5ab85cc14 100644 --- a/user_guide/libraries/config.html +++ b/user_guide/libraries/config.html @@ -99,7 +99,7 @@ so you will only need to load a config file if you have created your own.

If you need to load multiple config files normally they will be merged into one master config array. Name collisions can occur, however, if you have identically named array indexes in different config files. To avoid collisions you can set the second parameter to TRUE -and each config file will be stored in an array index corresponding to the name of the config file. Example: +and each config file will be stored in an array index corresponding to the name of the config file. Example:

// Stored in an array with this prototype: $this->config['blog_settings'] = $config
@@ -111,10 +111,8 @@ $this->config->load('blog_settings', TRUE);
$this->config->load('blog_settings', FALSE, TRUE); - - -
  • Auto-loading
  • +
  • Auto-loading

    If you find that you need a particular config file globally, you can have it loaded automatically by the system. To do this, open the autoload.php file, located at application/config/autoload.php, and add your config file as @@ -136,7 +134,7 @@ indicated in the file.

    The function returns FALSE (boolean) if the item you are trying to fetch does not exist.

    If you are using the second parameter of the $this->config->load function in order to assign your config items to a specific index -you can retrieve it by specifying the index name in the second parameter of the $this->config->item() function. Example: +you can retrieve it by specifying the index name in the second parameter of the $this->config->item() function. Example:

    // Loads a config file named blog_settings.php and assigns it to an index named "blog_settings"
    @@ -180,7 +178,7 @@ Previous Topic:  Calendaring Class Top of Page   ·   User Guide Home   ·   Next Topic:  Database Class -

    +

    CodeIgniter  ·  Copyright © 2007  ·  Ellislab, Inc.

    -- cgit v1.2.3-24-g4f1b