/** * Displays homepage. * * @return mixed */ public function actionIndex() { $searchModel = new SearchTblClassroomSetup(); $searchModel1 = new SearchTblAssetLoan(); $dataProvider = $searchModel->search(['SearchTblClassroomSetup' => ['status' => 'open']]); $dataProvider1 = $searchModel1->search(['SearchTblAssetLoan' => ['status' => 'open']]); $model = new TblClassroomSetup(); $model1 = new TblAssetLoan(); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'model' => $model, 'searchModel1' => $searchModel1, 'dataProvider1' => $dataProvider1, 'model1' => $model1]); }
/** * Lists all TblAssetLoan models. * @return mixed */ public function actionIndex() { $searchModel = new SearchTblAssetLoan(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }