楼主:
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聊表心意(不限一位)
感谢