From 757ccf869dea14fb65bec9952a704f02a69e85a8 Mon Sep 17 00:00:00 2001 From: Rick Ellis Date: Tue, 12 Aug 2008 01:00:30 +0000 Subject: --- user_guide/libraries/loader.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'user_guide/libraries') 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.

Once loaded, the library will be ready for use, using $this->email->some_function(). -Each library is described in detail in its own page, so please read the information regarding each one you would like to use.

+

Library files can be stored in subdirectories within the main "libraries" folder, or within your personal application/libraries 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:

+ +libraries/flavors/chocolate.php + +

You will load it using:

+ +$this->load->library('flavors/chocolate'); + +

You may nest the file in as many subdirectories as you want.

+ +

Each library is described in detail in its own page, so please read the information regarding each one you would like to use.

-

Parameters can be passed to the library via an array in the second parameter.

$this->load->view('file_name', $data, true/false)

-- cgit v1.2.3-24-g4f1b