From f0b3994f51937c643200a0547f70b1fa7d94f88a Mon Sep 17 00:00:00 2001
From: Derek Jones CodeIgniter does not load Helper Files by default, so the first step in using
a Helper is to load it. Once loaded, it becomes globally available in your controller and views. Helpers are typically stored in your system/helpers, or system/application/helpers directory. CodeIgniter will look first in your system/application/helpers
+ Helpers are typically stored in your system/helpers, or application/helpers directory. CodeIgniter will look first in your application/helpers
directory. If the directory does not exist or the specified helper is not located there CI will instead look in your global
system/helpers folder. By default it is assumed that you only intend to use CodeIgniter to manage one application, which you will build in your
-system/application/ directory. It is possible, however, to have multiple sets of applications that share a single
+application/ directory. It is possible, however, to have multiple sets of applications that share a single
CodeIgniter installation, or even to rename or relocate your application folder.Managing your Applications
Renaming the Application Folder
@@ -83,29 +83,29 @@ To do so open your main index.php and set a full server path
put all of the directories located inside your application folder into their
own sub-folder.
For example, let's say you want to create two applications, "foo" and "bar". You will structure your -application folder like this:
- -system/application/foo/
-system/application/foo/config/
-system/application/foo/controllers/
-system/application/foo/errors/
-system/application/foo/libraries/
-system/application/foo/models/
-system/application/foo/views/
-system/application/bar/
-system/application/bar/config/
-system/application/bar/controllers/
-system/application/bar/errors/
-system/application/bar/libraries/
-system/application/bar/models/
-system/application/bar/views/
+For example, let's say you want to create two applications, "foo" and "bar". You could structure your +application folders like this:
+ +applications/foo/
+applications/foo/config/
+applications/foo/controllers/
+applications/foo/errors/
+applications/foo/libraries/
+applications/foo/models/
+applications/foo/views/
+applications/bar/
+applications/bar/config/
+applications/bar/controllers/
+applications/bar/errors/
+applications/bar/libraries/
+applications/bar/models/
+applications/bar/views/
To select a particular application for use requires that you open your main index.php file and set the $application_folder variable. For example, to select the "foo" application for use you would do this:
-$application_folder = "application/foo";
+$application_folder = "applications/foo";
Note: Each of your applications will need its own index.php file which calls the desired application. The index.php file can be named anything you want.
diff --git a/user_guide/general/profiling.html b/user_guide/general/profiling.html index 8622edeb9..f8650314d 100644 --- a/user_guide/general/profiling.html +++ b/user_guide/general/profiling.html @@ -87,7 +87,7 @@ This information can be useful during development in order to help with debugginEach section of Profiler data can be enabled or disabled by setting a corresponding config variable to TRUE or FALSE. This can be done one of two ways. First, you can set application wide defaults with the system/application/config/profiler.php config file.
+Each section of Profiler data can be enabled or disabled by setting a corresponding config variable to TRUE or FALSE. This can be done one of two ways. First, you can set application wide defaults with the application/config/profiler.php config file.
$config['config'] = FALSE;
$config['queries'] = FALSE;
diff --git a/user_guide/helpers/text_helper.html b/user_guide/helpers/text_helper.html
index 9e8f8f5e1..0e075b9dc 100644
--- a/user_guide/helpers/text_helper.html
+++ b/user_guide/helpers/text_helper.html
@@ -121,7 +121,7 @@ part it should correctly identify characters outside the normal range (like acce
$string = convert_accented_characters($string);
-This function uses a companion config file system/application/config/foreign_chars.php to define the to and from array for transliteration.
+This function uses a companion config file application/config/foreign_chars.php to define the to and from array for transliteration.
Note: If you have any custom developed files in these folders please make copies of them first.
Add the following to system/application/config/config.php
+Add the following to application/config/config.php
/*
|--------------------------------------------------------------------------
| Default Character Set
@@ -91,7 +91,7 @@ Upgrading from 1.5.3 to 1.5.4
$config['charset'] = "UTF-8";
If you want to autoload any language files, add this line to system/application/config/autoload.php
+If you want to autoload any language files, add this line to application/config/autoload.php
$autoload['language'] = array();
Note: If you have any custom developed files in these folders please make copies of them first.
Add the following to system/application/config/config.php with the other session configuration options
+Add the following to application/config/config.php with the other session configuration options
$config['sess_time_to_update'] = 300;
Add the following to system/application/config/autoload.php
+Add the following to application/config/autoload.php
/*
| -------------------------------------------------------------------
| Auto-load Model files
@@ -94,7 +94,7 @@ Upgrading from 1.5.4 to 1.6.0
$autoload['model'] = array();
Make the following changes to your system/application/config/database.php file:
+Make the following changes to your application/config/database.php file:
Add the following variable above the database configuration options, with $active_group
$active_record = TRUE;
Remove the following from your database configuration options
diff --git a/user_guide/installation/upgrade_162.html b/user_guide/installation/upgrade_162.html index fd34ab087..c9eb2bfe0 100644 --- a/user_guide/installation/upgrade_162.html +++ b/user_guide/installation/upgrade_162.html @@ -78,12 +78,12 @@ Upgrading from 1.6.1 to 1.6.2If you are using sessions, open up system/application/config/config.php and verify you've set an encryption key.
+If you are using sessions, open up application/config/config.php and verify you've set an encryption key.
Copy /system/application/config/constants.php to your installation, and modify if necessary.
+Copy /application/config/constants.php to your installation, and modify if necessary.
Replace /system/application/config/mimes.php with the dowloaded version. If you've added custom mime types, you'll need to re-add them.
+Replace /application/config/mimes.php with the dowloaded version. If you've added custom mime types, you'll need to re-add them.
Please also replace your local copy of the user guide with the new version.
diff --git a/user_guide/libraries/javascript.html b/user_guide/libraries/javascript.html index 08982fd08..ac0af840d 100644 --- a/user_guide/libraries/javascript.html +++ b/user_guide/libraries/javascript.html @@ -79,7 +79,7 @@ Input and Security Class$library_src, is where the actual library file will be loaded, as well as any subsequent plugin script calls; $script_head is where specific events, functions and other commands will be rendered.
There are some configuration items in javascript library. These can either be set in system/application/config.php, within its own confg/javascript.php file, or within any controller usings the set_item() function.
+There are some configuration items in javascript library. These can either be set in application/config.php, within its own confg/javascript.php file, or within any controller usings the set_item() function.
An image to be used as an "ajax loader", or progress indicator. Without one, the simple text message of "loading" will appear when Ajax calls need to be made.
$config['javascript_location'] = 'http://localhost/codeigniter/themes/js/jquery/');
$config['javascript_ajax_img'] = 'images/ajax-loader.gif';
<?php echo $jquery_script;?>
<?php echo $script_head;?>
There are 2 configuration items in jQuery library. These can either be set in system/application/config.php, or within any controller. The first is the path from the root of your site to the jquery library ('js' is the default) and the second is an image to be used as an "ajax loader", or progress indicator. Without one, the simple text message of "loading" will appear when Ajax calls need to be made.
+There are 2 configuration items in jQuery library. These can either be set in application/config.php, or within any controller. The first is the path from the root of your site to the jquery library ('js' is the default) and the second is an image to be used as an "ajax loader", or progress indicator. Without one, the simple text message of "loading" will appear when Ajax calls need to be made.
$config['javascript_folder'] = 'js';
$config['javascript_ajax_img'] = 'images/ajax-loader.gif';
Language files are typically stored in your system/language directory. Alternately you can create a folder called language inside -your application folder and store them there. CodeIgniter will look first in your system/application/language +your application folder and store them there. CodeIgniter will look first in your application/language directory. If the directory does not exist or the specified language is not located there CI will instead look in your global system/language folder.
diff --git a/user_guide/libraries/loader.html b/user_guide/libraries/loader.html index ce693e0b8..98520e77c 100644 --- a/user_guide/libraries/loader.html +++ b/user_guide/libraries/loader.html @@ -187,14 +187,14 @@ it will instead return the data as a string.An application package allows for the easy distribution of complete sets of resources in a single directory, complete with its own libraries, models, helpers, config, and language files. It is recommended that these packages be placed in the system/application/third_party folder. Below is a sample map of an package directory
+An application package allows for the easy distribution of complete sets of resources in a single directory, complete with its own libraries, models, helpers, config, and language files. It is recommended that these packages be placed in the application/third_party folder. Below is a sample map of an package directory
The following is an example of a directory for an application package named "Foo Bar".
-/system/application/third_party/foo_bar
+/application/third_party/foo_bar
config/
helpers/
--
cgit v1.2.3-24-g4f1b