コード例 #1
0
 public function actionAssignations()
 {
     $searchModel = new AssignationSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     $this->layout = '/main2';
     return $this->render('assignations', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
コード例 #2
0
 /**
  * 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]);
 }