Creating REST API with CakePHP
问题 I have to create a REST API for mobile backend using CakePHP. After following the instructions here I have been able to setup the requirements for creating a REST API. The problem is that I am getting a null in my output when I use the _serialize variable. Here is my code: class InvitationController extends AppController { public $components = array('RequestHandler'); public function index() { } public function add() { if ($this->request->is('post')) { $this->loadModel('Organizer');