Example #1
0
 public function deletequestionAction()
 {
     $objQuestion = new Questionanswer_Model_Question(array());
     $id = $this->_getParam('id', null);
     $this->view->form = $form = new Questionanswer_Form_Admin_Manage_DeleteQuestion();
     if ($this->getRequest()->isPost()) {
         try {
             $objQuestion->deleteQuestion($id);
         } catch (Exception $e) {
             throw $e;
         }
         $this->_forward('success', 'utility', 'core', array('smoothboxClose' => true, 'parentRefresh' => true, 'format' => 'smoothbox', 'messages' => array('Question deleted.')));
     }
 }