public function deleteanswerAction() { $objAnswer = new Questionanswer_Model_Answer(array()); $id = $this->_getParam('id', null); $this->view->form = $form = new Questionanswer_Form_Admin_Manage_DeleteAnswer(); if ($this->getRequest()->isPost()) { try { $objAnswer->deleteAnswer($id); } catch (Exception $e) { throw $e; } $this->_forward('success', 'utility', 'core', array('smoothboxClose' => true, 'parentRefresh' => true, 'format' => 'smoothbox', 'messages' => array('Answer deleted.'))); } }