Hello to all. I've took a look on the rpcphp example to learn about the rpc
mechanism in qooxdoo.

My problem now is I need to use phprpc with the cakephp framework.

With cakephp, which follow the MVC, each controller is mapped in a url, and
its methods are also url. For example, the method
NuController::listen($par1,$par2) has the url:
http://site.com/project/nu/listen/par1/par2. Every class must be a valid and
standardized name. But I can have controller methods without views, of
course.

I've seen that the classes in the rpcphp example have names like
"class_test" and every method (which is called remotly) is "method_echo",
"method_sleep", etc. Are those names mandatory?

Furthermore, I've seen that the rpc call:

{"service":"qooxdoo.test","method":"echo","id":3,"params":["Hello"]}

... calls the method method_echo() from the class class/qooxdoo/test.php,
which is the class class_test.

So I want to know if there is a different way to write those classes.

The rpcserver is working fine in my project (calling RpcServer::run()), but
based on the rpcphp example, I don't know how use this library.

Can anyone here help me?
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to