From 2f0bac87c73febde8019e7cbab541905bcb0e5dd Mon Sep 17 00:00:00 2001
From: admin This function is used to load core classes. Where class_name is the name of the class you want to load.
+Note: We use the terms "class" and "library" interchangeably. For example, if you would like to send email with Code Igniter, the first step is to load the email class within your controller: 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 theinformation regarding each one you would like to use. If you would like your libraries assigned to a different variable name then the default you can specify the name in the second paramter: This function is used to load your View files. If you haven't read the Views section of the
@@ -92,21 +115,6 @@ to your browser. Remember to assign it to a variable if you wan the data return
This function is used to load core classes. Where class_name is the name of the class you want to load.
-Note: We use the terms "class" and "library" interchangeably. For example, if you would like to send email with Code Igniter, the first step is to load the email class within your controller: Once loaded, the library will be ready for use. Each library is described in detail in its own page, so please read the
-information regarding each one you would like to use. This function lets you load the database class. The two parameters are optional. Please see the
diff --git a/user_guide/libraries/table.html b/user_guide/libraries/table.html
index e80e53fd7..61b5ce82f 100644
--- a/user_guide/libraries/table.html
+++ b/user_guide/libraries/table.html
@@ -76,7 +76,8 @@ HTML Table Class
Here is an example showing how you can create a table from a multi-dimensional array.
-Note that the first array index will become the table heading.$this->load->library('class_name')
+
+$this->load->library('email');
+
+
+$this->load->library('email', 'E'); // Assigns the email object to "E"
+
+
+
+
+$this->E->some_function()
+$this->load->view('file_name', $data, true/false)
$string = $this->load->view('myfile', '', true);
-
-$this->load->library('class_name')
-
-$this->load->library('email');
-
-$this->load->database('options', true/false)
Examples
$this->load->library('table');
@@ -92,8 +93,8 @@ echo $this->table->generate($data);
Here is an example of a table created from a database query result. The table class will automatically generate the -headings based on the table names. Or you can set your own headings using the set_heading() function described -in the function reference below.
+headings based on the table names (or you can set your own headings using the set_heading() function described +in the function reference below).
$this->load->library('table');
@@ -164,7 +165,7 @@ $tmpl = array (
$this->table->set_template($tmpl);
-You'll notice there are two sets of "row" blocks in the template. These permit you to create alternating row colors or design elements that alternate with each +
Note: You'll notice there are two sets of "row" blocks in the template. These permit you to create alternating row colors or design elements that alternate with each iteration of the row data.
You are NOT required to submit a complete template. If you only need to change parts of the layout you can simply submit those elements. -- cgit v1.2.3-24-g4f1b