Welcome Guest, Not a member yet? Register   Sign In
1.6.2 XML-RPC Documentation Error
#1

[eluser]Elliot Haughin[/eluser]
Hey guys,

The 1.6.2 Documentation for XML-RPC server setup has this code:

Code:
$this->load->library('xmlrpc');
$this->load->library('xmlrpcs');

$config['functions]['new_post'] = array('function' => 'My_blog.new_entry'),
$config['functions]['update_post'] = array('function' => 'My_blog.update_entry');
$config['object'] = $this;

$this->xmlrpcs->initialize($config);
$this->xmlrpcs->serve()

However, this will fail, the first key in the $config array does not end it's quotes. Should be:


Code:
$this->load->library('xmlrpc');
$this->load->library('xmlrpcs');

$config['functions']['new_post'] = array('function' => 'My_blog.new_entry'),
$config['functions']['update_post'] = array('function' => 'My_blog.update_entry');
$config['object'] = $this;

$this->xmlrpcs->initialize($config);
$this->xmlrpcs->serve()


Regards
#2

[eluser]Derek Jones[/eluser]
Thanks, Elliot.




Theme © iAndrew 2016 - Forum software by © MyBB