Is it possible to create a CakePHP model that does not apply to a table from a database?

I am developing an API for C2DM to send push messages to Android devices. I have an API in PHP5 and I want to convert it to CakePHP 2.0.

How to create a model in CakePHP that does not apply to a table in a database? Is it possible to create such a model and controller to control it?

Or is there any existing cloud messaging code (C2DM) in CakePHP?

Thanks in advance.

+6
source share
2 answers

You can set $useTable to false in this particular model without tables, see cooking for more details .

+10
source

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

+3
source

Source: https://habr.com/ru/post/902215/


All Articles