summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-08-12 03:00:30 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-08-12 03:00:30 +0200
commit757ccf869dea14fb65bec9952a704f02a69e85a8 (patch)
tree2daa3756bf373a4c485f868d25621debf27a36ca /user_guide
parentafb056afd8335dd972f4e6d84b652641663ab6f4 (diff)
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/libraries/loader.html15
1 files changed, 13 insertions, 2 deletions
diff --git a/user_guide/libraries/loader.html b/user_guide/libraries/loader.html
index a9b2642ea..71f77650c 100644
--- a/user_guide/libraries/loader.html
+++ b/user_guide/libraries/loader.html
@@ -78,9 +78,20 @@ Note: We use the terms "class" and "library" interchangeably.</p>
<p>Once loaded, the library will be ready for use, using <kbd>$this->email-></kbd><samp><em>some_function</em>()</samp>.
-Each library is described in detail in its own page, so please read the information regarding each one you would like to use.</p>
+<p>Library files can be stored in subdirectories within the main "libraries" folder, or within your personal <dfn>application/libraries</dfn> folder.
+To load a file located in a subdirectory, simply include the path, relative to the "libraries" folder.
+For example, if you have file located at:</p>
+
+<code>libraries/flavors/chocolate.php</code>
+
+<p>You will load it using:</p>
+
+<code>$this->load->library('flavors/chocolate');</code>
+
+<p>You may nest the file in as many subdirectories as you want.</p>
+
+<p>Each library is described in detail in its own page, so please read the information regarding each one you would like to use.</p>
-<p>Parameters can be passed to the library via an array in the second parameter.</p>
<h2>$this->load->view('<var>file_name</var>', <samp>$data</samp>, <kbd>true/false</kbd>)</h2>