CodeIgniter Forums
XML RPC call 1 method before all others - 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: XML RPC call 1 method before all others (/showthread.php?tid=34243)



XML RPC call 1 method before all others - El Forum - 09-23-2010

[eluser]asciiCode[/eluser]
I have xml rpc working fine with code igniter.

What I want to do is call one method at the start of any xml rpc method.

This new special method would validate if the version number of the xml rpc call is valid.

Please note that I pass in the version number as the first variable to all of my xmlrpc calls.

Is there an easy way to validate this information other than doing it in each individual method?


XML RPC call 1 method before all others - El Forum - 09-23-2010

[eluser]sketchynix[/eluser]
Have you looked into using hooks for this?
http://ellislab.com/codeigniter/user-guide/general/hooks.html

Or perhaps extending the xml-rpc class