/** * Creates a new StudentEvidence model. * If creation is successful, the browser will be redirected to the 'view' page. * @return mixed */ public function actionCreate() { $model = new StudentEvidence(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'taskId' => $model->task_id, 'projectId' => $model->project_id, 'evidenceId' => $model->evidence_id, 'studentId' => $model->student_id]); } else { return $this->render('create', ['model' => $model]); } }