src/controllers/StateController.php
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
        ]);
    }
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
        ]);
    }
Lists all State models.

@return mixed