Ejemplo n.º 1
0
 public function updateAction()
 {
     $subject_id = $_GET['subject_id'];
     $monhoc = new Model_Monhoc();
     $listOne = $monhoc->findOneMon($subject_id);
     $this->view->listOne = $listOne;
     if ($this->_request->isPost()) {
         $data = $this->_getParam('searchParam');
         $monhoc->updateMonhoc($subject_id, $data);
         echo "<script>alert('Cập nhật dữ liệu thành công');</script>";
         header("Refresh:0");
     }
 }