diff options
author | paulburdick <devnull@localhost> | 2007-10-10 17:08:25 +0200 |
---|---|---|
committer | paulburdick <devnull@localhost> | 2007-10-10 17:08:25 +0200 |
commit | ce90c17965c73c5dfba40b416ee4b5181f8efda7 (patch) | |
tree | f15b0daa318680dd544c6934426cefe9cab57850 | |
parent | befdc87b1ce6caf47c6f8b1dfa02333dfee8a950 (diff) |
A few quick changes to the XML-RPC docs to be clearer
-rw-r--r-- | user_guide/libraries/xmlrpc.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/user_guide/libraries/xmlrpc.html b/user_guide/libraries/xmlrpc.html index eb1904e16..d79c654e2 100644 --- a/user_guide/libraries/xmlrpc.html +++ b/user_guide/libraries/xmlrpc.html @@ -151,7 +151,7 @@ you will have to include the data type in the request array.</p> <p>Here is an example of a simple array with three parameters:</p>
-<code>$request = array('John', 'Doe', 'www.example.com');<br />
+<code>$request = array('John', 'Doe', 'www.some-site.com');<br />
$this->xmlrpc->request($request);</code>
<p>If you use data types other than strings, or if you have several different data types, you will place
@@ -257,7 +257,7 @@ function might look:</p> ),<br />
'struct');<br />
<br />
- $this->xmlrpc->send_response($response);<br />
+ return $this->xmlrpc->send_response($response);<br />
}<br />
}
</code>
@@ -277,13 +277,13 @@ In the above example, the output parameters will be the username and password.</ <strong>that contains a single item</strong>. This item can be an array with several additional arrays, but there
can be only one primary array index. In other words, the basic prototype is this:</p>
-<code>$request = array('Response data', 'array');</code>
+<code>$response = array('Response data', 'array');</code>
<p>Responses, however, usually contain multiple pieces of information. In order to accomplish this we must put the response into its own
array so that the primary array continues to contain a single piece of data. Here's an example showing how this might be accomplished:</p>
<code>
-$request = array (<br />
+$response = array (<br />
array(<br />
'first_name' => array('John', 'string'),<br />
'last_name' => array('Doe', 'string'),<br />
@@ -366,7 +366,6 @@ class Xmlrpc_server extends Controller { function index()
{
-
$this->load->library('xmlrpc');
$this->load->library('xmlrpcs');
|