Esempio n. 1
0
 /**
  * Deletes a product
  *
  * @return null
  */
 public function action_delete()
 {
     $id = arr::get($_POST, 'id', NULL);
     $product = new Model_Vendo_Product($id);
     $product->delete();
     $this->request->redirect('admin/product');
 }