예제 #1
0
 public function actionIndex()
 {
     $searchModel = new MaterialSearch();
     $filter = Proc::SetFilter($searchModel->formName(), new MaterialFilter());
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'filter' => $filter]);
 }
예제 #2
0
 public function actionGlaukindex()
 {
     Proc::SetMenuButtons('glauk');
     $searchModel = new PatientSearch();
     $filter = Proc::SetFilter($searchModel->formName(), new PatientFilter());
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('glaukindex', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'filter' => $filter]);
 }