autoRender = false; // XML-RPC callbacks settings // Use this parameter to map XML-RPC methods to your protected or private controller methods $callbacks = array(); $callbacks['demo.sayHello'] = array(&$this, '_sayHello'); // Handle XML-RPC request $this->server = new IXR_Server($callbacks); } // Protected Method function _sayHello($name, $country) { return "Hi {$name}! You come from {$country}!"; } } ?>