/** * Lists all Kehadiran models. * @return mixed */ public function actionIndex() { $this->layout = 'back'; $searchModel = new KehadiranSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }
public function actionIndex() { $searchModel = new KehadiranSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); $modelKehadiran = new Kehadiran(); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'modelKehadiran' => $modelKehadiran]); }