Beispiel #1
0
 public function delete()
 {
     $my_product = $this->product_m->get_by('user', $this->current_user->id);
     $product_id = $my_product->id;
     $attachment = $my_product->business_logo;
     /*echo $solution_id;
       echo "<br>";
       echo $attachment;
       die();*/
     $this->product_single($product_id);
     if ($this->product_m->delete($product_id)) {
     }
     $this->load->library('files/files');
     files::delete_file($attachment);
     $this->session->set_flashdata('status', 'Your Business Listing has been deleted.');
     redirect('membership/mysb');
 }