From f0b3994f51937c643200a0547f70b1fa7d94f88a Mon Sep 17 00:00:00 2001
From: Derek Jones
$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