コード例 #1
0
ファイル: Form.php プロジェクト: ngardner/BentoCMS
 function actionDeleteSubmission($params = '')
 {
     if (!empty($params['submit_id'])) {
         $objForm = new FormModel();
         $objForm->deleteSubmission($params['submit_id']);
         $this->messages[] = array('type' => 'success', 'message' => 'Deleted form submission.');
     }
     if (!empty($params['form_id'])) {
         $this->actionViewSubmissions(array('form_id' => $params['form_id']));
     } else {
         $this->actionIndex();
     }
 }