Hi folks,

I have a strange request, and need some help please.  I want to add an
xml-rpc interface into my system, and have done this:

In factories.yml, I've added:
xmlrpc:
  controller:
    class:  sfXmlRpcController

sfXmlRpcController.class.php is in my apps/mymodule/lib/ directory

This class is basically:
class sfXmlRpcController extends sfController
{
        public function initialize($context)
        {
                parent::initialize($context);
                $this->setRenderMode(sfView::RENDER_NONE);
        }
        public function dispatch()
        {
                try
                {
                        $xmlrpc_server = xmlrpc_server_create();
                        $actionInstance = $this->getAction("xmlrpc", 
"userLogin");
                        $actionInstance->initialize($this->context);
                        xmlrpc_server_register_method($xmlrpc_server, 
"login_user", array(&
$actionInstance,"execute"));
...

where apps/mymodule/modules/xmlrpc/lib/userLoginAction.class.php is:
class userLoginAction extends sfAction
{
        public function execute()
        {
                sfContext::getInstance()->getLogger()->debug("Inside
userLogin!!!!");
                return array("status" => 0);
        }
}

Question:
1)  I appear to be up and running.  Anybody see any issues with what
I'm doing?
2)  How could I improve this?

TIA
Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to