public function actionReleaseActivity()
 {
     $request = yii::$app->request;
     $session = yii::$app->session;
     $user = $session['user'];
     $activity = new Activity();
     $activity['id'] = Activity::getNewActivityId();
     $activity['startdate'] = $request->post('startdate');
     $activity['finishdate'] = $request->post('finishdate');
     $activity['peoplenum'] = intval($request->post('peoplenum'));
     $activity['beginerId'] = $user['id'];
     $activity->save();
     return $this->render("oneActivity", ['activity' => $activity, 'attendUsers' => array()]);
 }