Welcome Guest, Not a member yet? Register   Sign In
XML-RPC Server functions delegation
#1

[eluser]eMSi_113[/eluser]
Hello Everyone,

I'm experiencing problems with setting up the xmlrpc server.
Here's my config:
Code:
$config['functions']['my_class.my_method'] = array('function' => 'my_class.my_method');
$config['object'] = $this;
$this->xmlrpcs->initialize($config);
Now. I have tried creating a controller in controllers folder:
Code:
class challenges extends Controller
{
    function my_method($request) { /* code */ }
}

and library in libraries folder similarily but it looks like CodeIgniter's XMLRPC Server library doesn't delegate the call. From what I looked up in Xmlrpcs.php source code it just does is_callable(array('my_class','my_method') and of course this won't work because my_class isn't loaded while in manual it does say:

Quote:your server will load the my_class class and call the my_method function.

Any ideas what I'm doing wrong? Should I autoload the library/controller (and I don't like this idea)?


Messages In This Thread
XML-RPC Server functions delegation - by El Forum - 02-12-2010, 06:22 AM
XML-RPC Server functions delegation - by El Forum - 02-13-2010, 09:22 AM
XML-RPC Server functions delegation - by El Forum - 02-20-2010, 02:22 PM
XML-RPC Server functions delegation - by El Forum - 02-20-2010, 02:28 PM
XML-RPC Server functions delegation - by El Forum - 02-24-2010, 07:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB