示例#1
0
 /**
  * Lists all Employee models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new EmployeeModel();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }