[ 'class' => LoginBehavior::className(), ], ]); } //活动列表 public function actionIndex() { if(\Yii::$app->request->isAjax){ $form = new ActivityActionForm(); $form->attributes = \Yii::$app->request->get(); $data = $form->search(); return $this->responseHandler($data); } return $this->render('index'); } //创建数据 public function actionEdit(){ $form = new ActivityActionForm(); $form->attributes = \Yii::$app->request->post(); $data = $form->actionEdit(); return $this->responseHandler($data); } //创建数据 public function actionDelete(){ $form = new ActivityActionForm(); $form->attributes = \Yii::$app->request->post(); $data = $form->actionDelete(); return $this->responseHandler($data); } // 参与用户 public function actionJoinUser(){ $form = new ActivityActionForm(); $form->attributes = \Yii::$app->request->get(); $data = $form->actionJoinUser(); return $this->responseHandler($data); } }