/**
  * Creates a new member.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreatemember($id)
 {
     $model = new Chatroom();
     if ($model->load(Yii::$app->request->post())) {
         $model->SORT = $id;
         $model->PARENT = $id;
         $model->GROUP_ID = $id;
         $model->save();
         return $this->redirect('index');
     } else {
         return $this->renderAjax('_formmember', ['model' => $model]);
     }
 }