Example #1
0
 function delete($id)
 {
     $this->checkRole(array(1));
     $product = new Product($id);
     $product->deep_delete();
     redirect($_SERVER['HTTP_REFERER']);
 }