作者:
BF109Pilot (å¾·è»çŽ‹ç‰Œé£›è¡Œå“¡)
2014-07-01 11:48:07小弟架了cakephp-2.5.2
要用來作簡單網頁用途
但遇到個問題
我有支API是撈DB資料然後吐JSON出來
但是JSON前老是會多一段code
而那段code正好是我所use的model檔
如:
App::uses('AppModel', 'Model'); class Creature extends AppModel { (下略)
我試過
Configure::write('debug', 0);
以及
$this->layout = false;
$this->layout = 'ajax';
$this->autoRender = false;
都不能把那段消掉
不知道有沒有前輩能幫我解惑一下
願付1000P聊表心意(不限一位)
感謝