Correct use of XML-RPC in MVC paradigm - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Correct use of XML-RPC in MVC paradigm (/showthread.php?tid=25121) |
Correct use of XML-RPC in MVC paradigm - El Forum - 12-01-2009 [eluser]jdav3579[/eluser] Hi, My understanding of MVC is that the model interacts with data sources and the Controller interacts with the user. XML-RPC is suppose to send data back to the requesting machine. So therefore I could understand using the XML-RPC server in the controller. The XML-RPC server is also a data source/sink, so should it really go in the model? The only trouble is that it still needs to be called from the controller, so I think it cuts across the two layers. I have code that can be re-used by placing the XML-RPC server/client in the Model, but I have yet to figure out a way of doing it. One solution I thought of is to define the functions in the controller and then pass data about the controller back to the model which handles XML-RPC, but I believe this is an anti-pattern. Can anyone point me in the right direction for its usage? Thanks John |