/** * Creates a new Calendario model. * If creation is successful, the browser will be redirected to the 'view' page. * @return mixed */ public function actionCreate($idexame) { $model = new Calendario(); $model->exame_idexame = $idexame; if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['/exame/update', 'id' => $model->exame_idexame]); } else { return $this->render('create', ['model' => $model]); } }