Exemplo n.º 1
0
 public function uploadcompetencyAction()
 {
     die('finished -|-_-|-');
     try {
         $file_path = './comment/competency_comment.xls';
         $shengHandler = new ExcelUpload($file_path);
         $data = $shengHandler->handleCompetency();
         $dbHandle = new DBHandle();
         $dbHandle->insertCompetency($data);
         echo 'finished';
     } catch (Exception $e) {
         echo $e->getMessage();
         return false;
     }
 }