/** * Creates a new model. * If creation is successful, the browser will be redirected to the 'ubah' page. */ public function actionTambah() { $model = new NotifikasiAksi(); // Uncomment the following line if AJAX validation is needed // $this->performAjaxValidation($model); if (isset($_POST['NotifikasiAksi'])) { $model->attributes = $_POST['NotifikasiAksi']; if ($model->save()) { $this->redirect(array('ubah', 'id' => $model->id)); } } $this->render('tambah', array('model' => $model, 'tipeList' => $this->getTipeList())); }