Наследование: extends Admin\Model\CommonModel
 public function addArticle()
 {
     $ArticleModel = new ArticleModel();
     $request = array();
     $request['AR_title'] = $_POST['title'];
     $request['AR_category'] = $_POST['category'];
     $request['AR_content'] = $_POST['content'];
     $request['AR_createTime'] = date('Y-m-d', time());
     //说明是招聘信息,提取相关要求信息
     if ($request['AR_category'] == 1) {
         $request['AR_numPerson'] = $_POST['personNum'];
         $request['AR_education'] = $_POST['education'];
         $request['AR_major'] = $_POST['major'];
         $request['AR_deadTime'] = $_POST['deadTime'];
         $request['AR_age'] = $_POST['age'];
     }
     //        $request['AR_creator'] = $_SESSION['user'];
     $request['AR_creator'] = "Admin";
     $status = $ArticleModel->addArticle($request);
     if ($status == true) {
         //向firstcheck表添加数据
         $firstCheckBoxs = $_POST['firstCheckBox'];
         $Checklist = new ChecklistModel();
         $check['CL_arid'] = $status;
         for ($i = 0; $i < count($firstCheckBoxs); $i++) {
             $check['CL_dpid'] = $firstCheckBoxs[$i];
             $Checklist->addToCheck($check);
         }
         $this->success('添加成功', 'index');
     } else {
         $this->error("添加失败");
     }
 }