By default, the Form Validation class adds a paragraph tag (<p>) around each error message shown. You can either change these delimiters globally or
+
By default, the Form Validation class adds a paragraph tag (<p>) around each error message shown. You can either change these delimiters globally or
individually.
diff --git a/user_guide/libraries/ftp.html b/user_guide/libraries/ftp.html
index a46b155b9..493177655 100644
--- a/user_guide/libraries/ftp.html
+++ b/user_guide/libraries/ftp.html
@@ -82,7 +82,7 @@ $this->load->library('ftp');
$config['hostname'] = 'ftp.example.com';
$config['username'] = 'your-username';
$config['password'] = 'your-password';
-$config['debug'] = TRUE;
+$config['debug'] = TRUE;
$this->ftp->connect($config);
@@ -101,7 +101,7 @@ $this->load->library('ftp');
$config['hostname'] = 'ftp.example.com';
$config['username'] = 'your-username';
$config['password'] = 'your-password';
-$config['debug'] = TRUE;
+$config['debug'] = TRUE;
$this->ftp->connect($config);
@@ -121,7 +121,7 @@ $this->load->library('ftp');
$config['hostname'] = 'ftp.example.com';
$config['username'] = 'your-username';
$config['password'] = 'your-password';
-$config['debug'] = TRUE;
+$config['debug'] = TRUE;
$this->ftp->connect($config);
@@ -231,7 +231,7 @@ $this->ftp->delete_file('/public_html/joe/blog.html');
$this->ftp->delete_dir()
Lets you delete a directory and everything it contains. Supply the source path to the directory with a trailing slash.
-Important Be VERY careful with this function. It will recursively delete
+
Important Be VERY careful with this function. It will recursively delete
everything within the supplied path, including sub-folders and all files. Make absolutely sure your path is correct.
Try using the list_files() function first to verify that your path is correct.
@@ -242,7 +242,7 @@ $this->ftp->delete_dir('/public_html/path/to/folder/');
$this->ftp->list_files()
-Permits you to retrieve a list of files on your server returned as an array. You must supply
+
Permits you to retrieve a list of files on your server returned as an array. You must supply
the path to the desired directory.
@@ -254,7 +254,7 @@ print_r($list);
$this->ftp->mirror()
-Recursively reads a local folder and everything it contains (including sub-folders) and creates a
+
Recursively reads a local folder and everything it contains (including sub-folders) and creates a
mirror via FTP based on it. Whatever the directory structure of the original file path will be recreated on the server.
You must supply a source path and a destination path:
diff --git a/user_guide/libraries/image_lib.html b/user_guide/libraries/image_lib.html
index 3dce50bf2..98ed4f6dd 100644
--- a/user_guide/libraries/image_lib.html
+++ b/user_guide/libraries/image_lib.html
@@ -447,7 +447,7 @@ calling the watermark function. Here is an example:
$config['source_image'] = '/path/to/image/mypic.jpg';
-$config['wm_text'] = 'Copyright 2006 - John Doe';
+$config['wm_text'] = 'Copyright 2006 - John Doe';
$config['wm_type'] = 'text';
$config['wm_font_path'] = './system/fonts/texb.ttf';
$config['wm_font_size'] = '16';
diff --git a/user_guide/libraries/loader.html b/user_guide/libraries/loader.html
index 1d5a47f40..34e3929a9 100644
--- a/user_guide/libraries/loader.html
+++ b/user_guide/libraries/loader.html
@@ -78,8 +78,8 @@ Note: We use the terms "class" and "library" interchangeably.
Once loaded, the library will be ready for use, using $this->email->some_function().
-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.
+
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
@@ -217,7 +217,7 @@ $this->load->library('foo_bar');
When your controller is finished using resources from an application package, and particularly if you have other application packages you want to work with, you may wish to remove the package path so the Loader no longer looks in that folder for resources. To remove the last path added, simply call the method with no parameters.
$this->load->remove_package_path()
-
+
Or to remove a specific package path, specify the same path previously given to add_package_path() for a package.:
$this->load->remove_package_path(APPPATH.'third_party/foo_bar/');
diff --git a/user_guide/libraries/output.html b/user_guide/libraries/output.html
index eeb278371..a1427de7b 100644
--- a/user_guide/libraries/output.html
+++ b/user_guide/libraries/output.html
@@ -140,9 +140,9 @@ at the bottom of your pages for debugging and optimization purposes.
Parsing Execution Variables
CodeIgniter will parse the pseudo-variables {elapsed_time} and {memory_usage} in your output by default. To disable this, set the $parse_exec_vars class property to FALSE in your controller.
-
+
$this->output->parse_exec_vars = FALSE;
-
+
diff --git a/user_guide/libraries/pagination.html b/user_guide/libraries/pagination.html
index 521b708b1..42c102c8d 100644
--- a/user_guide/libraries/pagination.html
+++ b/user_guide/libraries/pagination.html
@@ -69,7 +69,7 @@ Pagination Class
Here is a simple example showing how to create pagination in one of your controller functions:
-$this->load->library('pagination');
+$this->load->library('pagination');
$config['base_url'] = 'http://example.com/index.php/test/page/';
$config['total_rows'] = '200';
$config['per_page'] = '20';
diff --git a/user_guide/libraries/table.html b/user_guide/libraries/table.html
index f1a46fca0..e90aca3d2 100644
--- a/user_guide/libraries/table.html
+++ b/user_guide/libraries/table.html
@@ -83,7 +83,7 @@ $data = array(
array('John', 'Green', 'Medium')
);
-echo $this->table->generate($data);
+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
@@ -95,7 +95,7 @@ $this->load->library('table');
$query = $this->db->query("SELECT * FROM my_table");
-echo $this->table->generate($query);
+echo $this->table->generate($query);
@@ -110,7 +110,7 @@ $this->table->add_row('Fred', 'Blue', 'Small');
$this->table->add_row('Mary', 'Red', 'Large');
$this->table->add_row('John', 'Green', 'Medium');
-echo $this->table->generate();
+echo $this->table->generate();
Here is the same example, except instead of individual parameters, arrays are used:
@@ -124,7 +124,7 @@ $this->table->add_row(array('Fred', 'Blue', 'Small'));
$this->table->add_row(array('Mary', 'Red', 'Large'));
$this->table->add_row(array('John', 'Green', 'Medium'));
-echo $this->table->generate();
+echo $this->table->generate();
diff --git a/user_guide/libraries/typography.html b/user_guide/libraries/typography.html
index 2675fa759..e78af5f9a 100644
--- a/user_guide/libraries/typography.html
+++ b/user_guide/libraries/typography.html
@@ -134,7 +134,7 @@ This function is identical to the native PHP nl2br() function, except
When using the Typography library in conjunction with the Template Parser library it can often be desirable to protect single
and double quotes within curly braces. To enable this, set the protect_braced_quotes class property to TRUE.
-
+
Usage example:
$this->load->library('typography');
diff --git a/user_guide/libraries/unit_testing.html b/user_guide/libraries/unit_testing.html
index 0e7d1d696..84db54431 100644
--- a/user_guide/libraries/unit_testing.html
+++ b/user_guide/libraries/unit_testing.html
@@ -81,7 +81,7 @@ to determine if it is producing the correct data type and result.
$this->unit->run( test, expected result, 'test name', 'notes');
-Where test is the result of the code you wish to test, expected result is the data type you expect,
+
Where test is the result of the code you wish to test, expected result is the data type you expect,
test name is an optional name you can give your test, and notes are optional notes. Example:
$test = 1 + 1;
diff --git a/user_guide/libraries/xmlrpc.html b/user_guide/libraries/xmlrpc.html
index 8d1dbdf5f..971ab0296 100644
--- a/user_guide/libraries/xmlrpc.html
+++ b/user_guide/libraries/xmlrpc.html
@@ -192,7 +192,7 @@ The allowed methods are on the left side of the array. When either of those are
The 'object' key is a special key that you pass an instantiated class object with, which is necessary when the method you are mapping to is not
part of the CodeIgniter super object.
-
+
In other words, if an XML-RPC Client sends a request for the new_post method, your
server will load the My_blog class and call the new_entry function.
If the request is for the update_post method, your
@@ -202,7 +202,7 @@ server will load the My_blog class and call the update_entry
There are two additional configuration keys you may make use of when initializing the server class: debug can be set to TRUE in order to enable debugging, and xss_clean may be set to FALSE to prevent sending data through the Security library's xss_clean function.
-
+
Processing Server Requests
When the XML-RPC Server receives a request and loads the class/method for processing, it will pass
@@ -324,20 +324,20 @@ In it, place this code and save it to your applications/controllers/<?php
class Xmlrpc_client extends Controller {
-
+
function index()
- {
+ {
$this->load->helper('url');
$server_url = site_url('xmlrpc_server');
-
+
$this->load->library('xmlrpc');
-
+
$this->xmlrpc->server($server_url, 80);
$this->xmlrpc->method('Greetings');
-
+
$request = array('How is it going?');
- $this->xmlrpc->request($request);
-
+ $this->xmlrpc->request($request);
+
if ( ! $this->xmlrpc->send_request())
{
echo $this->xmlrpc->display_error();
@@ -367,24 +367,24 @@ class Xmlrpc_server extends Controller {
{
$this->load->library('xmlrpc');
$this->load->library('xmlrpcs');
-
+
$config['functions']['Greetings'] = array('function' => 'Xmlrpc_server.process');
-
+
$this->xmlrpcs->initialize($config);
$this->xmlrpcs->serve();
}
-
-
+
+
function process($request)
{
$parameters = $request->output_parameters();
-
+
$response = array(
array(
'you_said' => $parameters['0'],
'i_respond' => 'Not bad at all.'),
'struct');
-
+
return $this->xmlrpc->send_response($response);
}
}
@@ -422,7 +422,7 @@ The Server receives the request and maps it to the "process" function, where a r
)
);
$this->xmlrpc->request($request);
-
+
You can retrieve the associative array when processing the request in the Server.
$parameters = $request->output_parameters();
--
cgit v1.2.3-24-g4f1b