コード例 #1
0
ファイル: pages.php プロジェクト: ngdlong91/bmtu_site
 public function post_recruitment()
 {
     $data = Input::json();
     if ($data == null) {
         $this->template->__yield__ = View::forge('pages/recruitment', array());
     } else {
         if ($data['action'] == 'save') {
             $response['Code'] = Recruitment::update_content($data);
             if ($response['Code'] == 1) {
                 $response['Msg'] = 'Update success';
             } else {
                 $response['Msg'] = 'Update fail';
             }
             return json_encode($response);
         }
     }
 }
コード例 #2
0
ファイル: news.php プロジェクト: ngdlong91/bmtu_site
 public function post_fetch()
 {
     $reqObj = Input::json();
 }