是否可以创建一个不引用数据库表的CakePHP模型?

I'm developing an API for C2DM to send push messages to Android devices. I have the API in PHP5 and I want to tranform it to CakePHP 2.0.

How can I create a model in CakePHP that doesn't refer to a table in the database? Is it possible to create such a model and a controller to manage it?

Or is there any existing code to do Cloud to Device Messaging (C2DM) in CakePHP?

Thanks in advance.

You can set $useTable to false in that particular tableless model, see the cookbook for further details.

cakephp models have an attribute called $useTable which you can set to false.