1
我在我的Db中有Ipr_forms
表我想更新該行,但下面的代碼給了我該表的job_id
。這不是我的要求... ..我想表ID來更新現有的表CakePHP:從Ipr_forms表中獲取IprForm ID並更新表中的行
我控制器代碼
$id =$this->request->data['IprForm']['id'];
$ipr_forms['job_id'] = $this->request->data['IprForm']['job_id'];
$ipr_forms['IprForm'] = $this->request->data['IprForm'];
$this->IprForm->id = $id;
//debug($id);
$ipr_forms_save = $this->IprForm->save($ipr_forms);
,如果我調試ID的$ id,$id
變量保持JOB_ID ....