public function deleteAction() { // action body /* $prod = new Application_Model_Product(); $res = $prod->deleteProduct(9); $this->view->res = $res ; * */ $id = $this->getRequest()->getParam('id'); $model = new Application_Model_Product(); $model->deleteProduct($id); $this->redirect("Product/list"); }