Now my need is to update my profile in two tables users and
usersprofile table.
i use the below code for updation, but it only update in user table,
not in userprofile table.
instead of update in userprofile, it is inserted the data in a new
row. i dont know why?
userid is the common field for
ect('/users/account_settings');
}else{
$this->Session->setFlash('Please check');
$this->redirect('/users/account_settings');
}
}
}
it is updated email and password in users table correctly, the
rema
i faced a problem while update my profile.
function edit($id){
if (empty($this->data)) {
$this->product->id = $id;
$this->data = $this->product->read();
}else{
if($this->product->save($this->data['product'])){
$this-