Inheritance: extends backend\models\Admin
 /**
  * Lists all Admin models.
  * @return mixed
  */
 public function actionIndex()
 {
     //if(!Yii::$app->user->can('viewUser')) throw new ForbiddenHttpException(Yii::t('app', 'No Auth'));
     $searchModel = new AdminSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     $arrayStatus = Admin::getArrayStatus();
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'arrayStatus' => $arrayStatus]);
 }
 public function actionIndex()
 {
     $searchModel = new AdminSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->get());
     return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }