/** * Creates a new model. * If creation is successful, the browser will be redirected to the 'view' page. */ public function actionCreate() { $model = new PenempatanMapel(); // Uncomment the following line if AJAX validation is needed // $this->performAjaxValidation($model); if (isset($_POST['PenempatanMapel'])) { $model->attributes = $_POST['PenempatanMapel']; if ($model->save()) { $this->redirect(array('view', 'id' => $model->kode_mapel, 'id2' => $model->kurikulum, 'id3' => $model->kelas, 'id4' => $model->lokal)); } } $this->render('create', array('model' => $model)); }