jsonを返すAPIを作成しているのですがfindの結果によって500エラーが出ます。
$result = $this->find('all'); // エラーでない
$result = $this->find('all'array('limit' => 1)); // エラーがでる
$this->set(compact('result'));
$this->set('_serialize', array('result'));
jsonはちゃんと返しているのですが500エラーが出てしまいます。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。