cakephp - update function not working with where condition -


if($mydetails=$this->mydetails->findbydoctor_id($id)){//to update         $this->set('mydetails', $mydetails);          if ($this->request->is('post')) {                if ($this->mydetails->updateall($this->request->data, array('doctor_id' => "'".$id."'"))) {                 $this->session->setflash(__('your details has updated.'));             } else {                 $this->session->setflash(__('unable updated.'));             }              }             //print_r($mydetails);              }// 

here trying update form details using id not worked

if trying use cake's magic methods

$this->mydetails->findbydoctor_id($id) 

it should :

$this->mydetails->findbydoctorid($id) 

give @ try


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -