/** * This method controls what happens when you move to /inventory/delete(/XX) in your app. * Deletes a product. In a real application a deletion via GET/URL is not recommended, but for demo purposes it's * totally okay. * @param int $product_id id of the note */ public function delete($product_id) { InventoryModel::deleteProduct($product_id); Redirect::to('inventory'); }