well.. what if you just killed the execution in the begining - like die or so.. dose it get executed - giving some error or so??
I've ediited my code :
function log_product_after_update($post_array,$primary_key)
{
try {
$this->load->library('email');
$config['mailtype'] = 'html';
$this->email->initialize($config);
$this->email->from('admin@petodate.com', 'Peto Admin');
$this->email->to('sahib.muhamad@gmail.com');
$this->email->subject('TEST');
$this->email->message('Update product 2');
if (!$this->email->send()) {
show_error($this->email->print_debugger()); }
else {
return true;
}
}
catch(Exception $e){
show_error($e->getMessage().' --- '.$e->getTraceAsString());
}
And it shows nothing (always redirect to update success page)...
}