//控制器<?php namespace frontend\controllers; use frontend\models\User; use yii; use yii\web\Controller; class ContController extends Controller { public $enableCsrfValidation = false; //用户注册 public function actionUser() { //接收json数据 $a=file_get_content…