• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.