⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Delete Error Message not showing



Dileep Kumar K
  • profile picture
  • Member

Posted 31 December 2015 - 09:15 AM

$crud->set_lang_string('delete_error_message', ' Deletion Error ');

 

$crud->callback_before_delete(array($this,'delete_user'));

 

 

public function delete_user($primary_key)
{
    $this->db->where('id', $primary_key);
$this->db->where('mode', 'M');
    $this->db->delete('user');
    $num_rows = $this->db->affected_rows();
 
    if ($num_rows > 0) {
        return TRUE;
    } else {
        return FALSE;
    }
}
 
This is my code but it not showing error message. i'm using bootstrap theme.
plz help me.