CodeIgniter Forums
RPC server to retrieve data from any model or controller - 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: RPC server to retrieve data from any model or controller (/showthread.php?tid=51431)



RPC server to retrieve data from any model or controller - El Forum - 05-03-2012

[eluser]coldscooter[/eluser]
I am setting up a RPC server for my CI install. I would like it to be a single controller that can be called remotely to retrieve the $data array from any controller function, or to retrieve the output of a model function.

If there are way to evoke an instance of a controller from a separate controller, so that I can return the array of results?

I basically want an RPC gateway that has access to all the logic within the controllers and models.