In crm_user_model->update()
, return true
or false
depending on the output of CodeIgniter's update()
function:
if ($this->db->update('mytable', $mydata)) {
// Do some stuff
return true;
} else {
// Do some stuff
return false;
}
Or if you don't need to do anything else in your model, just do this:
return $this->db->update('mytable', $mydata);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…