$form = ActiveForm::begin([ // 默认不写,提交到当前控制器方法,但也可以这么设置 'action' => \yii\helpers\Url::to(['user/index']), ])