code: public function actionIndex()
      {
          $searchModel = new SearchState(Yii::$app->request->get());
          $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  
          return $this->render('index', [
                      'searchModel' => $searchModel
                      , 'dataProvider' => $dataProvider
          ]);
      }
docs: Lists all State models.
  
  @return mixed