The best plase for a non-generic cURL function

Hi,

I have written a method to post some XML to a url and get a response.

It is currently just a method within the model it is used.

What would be the best place to put this method to make it available to all models etc?

Thanks,

Julian

maybe this?

http://www.yiiframework.com/doc/api/1.1/CActiveRecordBehavior