public function actionDaftar() { $model = new Pengguna(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['index']); } else { return $this->render('daftar', ['model' => $model]); } }