예제 #1
0
 public function actionTest()
 {
     $request = Yii::$app->request;
     $userID = $request->post('userID');
     $data['login_information'] = User::getUserInfo($userID);
     $data['PersonalInformation'] = PersonalInformation::getUserPersonalInfo($userID);
     //print_r($data['login_information']);
     Yii::$app->response->format = 'json';
     //header json
     echo json_encode($data);
 }