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