2013-10-25 62 views
0

我有這個控制器蛋糕PHP的返回時間字符串作爲註釋

public function admin_getsalesareas($house_id) { 


     $this->autorender = false; 
     $this->layout = false; 
     $salesareas = $this->Salesarea->find('list', array('conditions' => array('house_id' => $house_id))); 

     echo json_encode($salesareas); 
    } 

問題是,它返回與賈森時間字符串,我不想

{"1":"COA3","2":"tes1","3":"test2"} <!-- 0.1405s --> 

如何去除這

回答

1

我認爲你必須調試模式> 0,除去這些,請設置調試0

Configure::write('debug', 0);